drm/radeon/atom: Move 'radeon_atom_hw_i2c_*()'s prototypes into shared header
authorLee Jones <lee.jones@linaro.org>
Mon, 16 Nov 2020 17:36:32 +0000 (17:36 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2020 20:56:34 +0000 (15:56 -0500)
commitf6a96afb3c99ab0e0d46f5652a53f66eeaff7bfb
tree2bffe6c3772c0bac7e557f40ee3c25b44ea42959
parentf3723ad110c5a6e068b8eea17a3c5f15e4f75d39
drm/radeon/atom: Move 'radeon_atom_hw_i2c_*()'s prototypes into shared header

Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/radeon/atombios_i2c.c:100:5: warning: no previous prototype for ‘radeon_atom_hw_i2c_xfer’ [-Wmissing-prototypes]
 100 | int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap,
 | ^~~~~~~~~~~~~~~~~~~~~~~
 drivers/gpu/drm/radeon/atombios_i2c.c:150:5: warning: no previous prototype for ‘radeon_atom_hw_i2c_func’ [-Wmissing-prototypes]
 150 | u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap)
 | ^~~~~~~~~~~~~~~~~~~~~~~

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atom.h
drivers/gpu/drm/radeon/radeon_i2c.c