]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0c0fdde804d73c547707aa1a5391f7912880ac4
tree451b5b4cc8ad3bbd986c9b97381b67156975fe97
parent9352f01b7b91e4cc76eef4f1612f0f11d54e6830
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