drm/amd/display: Eliminate i2c hw function pointers
authorDavid Francis <David.Francis@amd.com>
Thu, 9 Aug 2018 17:20:04 +0000 (13:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 20:19:56 +0000 (15:19 -0500)
commit9bbdb0f345f50e2a9afd7d7c475e3b788eec402b
tree451b5b4cc8ad3bbd986c9b97381b67156975fe97
parent284dec4317c8e76f45d3ce922f673c80331812f1
drm/amd/display: Eliminate i2c hw function pointers

[Why]
The function pointers of the dce_i2c_hw struct were never
accessed from outside dce_i2c_hw.c and had only one version.
As function pointers take up space and make debugging difficult,
and they are not needed in this case, they should be removed.

[How]
Remove the dce_i2c_hw_funcs struct and make static all
functions that were previously a part of it.  Reorder
the functions in dce_i2c_hw.c.

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