drm/amd/display: Combine dce80 and dce100 i2c hw functions
authorDavid Francis <David.Francis@amd.com>
Thu, 9 Aug 2018 17:15:36 +0000 (13:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:06 +0000 (11:11 -0500)
commit728098352ea493584feea20be114006c30d76bca
treecc6b928e812cb6f1c6ae8bb157e4cb93facbf625
parentd75de8ac943beef397375d96d01be15aed3fdf27
drm/amd/display: Combine dce80 and dce100 i2c hw functions

[Why]
There are two versions of the hw function pointers: one for dce80
and one for all other versions.  These paired functions are
nearly identical.  dce80 and dce100 should not require
different i2c access functions.

[How]
Combine each pair of functions into a single function.  Mostly
the new functions are based on the dce100 versions as those
versions are newer, support more features, and
were more maintained.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c