drm/i915/dp: use readb and writeb calls for single byte DPCD access
authorJani Nikula <jani.nikula@intel.com>
Thu, 6 Apr 2017 13:44:16 +0000 (16:44 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 11 Apr 2017 13:54:32 +0000 (16:54 +0300)
commit010b9b397b32e1fa2d2bd15ec521350a99ac4dc4
tree50218bf2f279ffd6593b4cb4f17cdfa69d7ef9a7
parentec990e21d7668e08f6f4bd9b73e9d40d04b04198
drm/i915/dp: use readb and writeb calls for single byte DPCD access

This is what we have the readb and writeb variants for. Do some minor
return value and variable cleanup while at it.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/fd8a8f110bcfdc73a8c9241e5f9d61f7dd7c9677.1491485983.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c