Align the names of the algo-bit helpers with mgag200's convention of using an mgag200 prefix plus the struct's name plus the callback's name for such function symbols. Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx> --- drivers/gpu/drm/mgag200/mgag200_ddc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_ddc.c b/drivers/gpu/drm/mgag200/mgag200_ddc.c index 73ff94c91ca36..3fa11b190943e 100644 --- a/drivers/gpu/drm/mgag200/mgag200_ddc.c +++ b/drivers/gpu/drm/mgag200/mgag200_ddc.c @@ -71,28 +71,28 @@ static inline void mga_i2c_set(struct mga_device *mdev, int mask, int state) mga_i2c_set_gpio(mdev, ~mask, state); } -static void mga_gpio_setsda(void *data, int state) +static void mgag200_ddc_algo_bit_data_setsda(void *data, int state) { struct mgag200_ddc *ddc = data; mga_i2c_set(ddc->mdev, ddc->data, state); } -static void mga_gpio_setscl(void *data, int state) +static void mgag200_ddc_algo_bit_data_setscl(void *data, int state) { struct mgag200_ddc *ddc = data; mga_i2c_set(ddc->mdev, ddc->clock, state); } -static int mga_gpio_getsda(void *data) +static int mgag200_ddc_algo_bit_data_getsda(void *data) { struct mgag200_ddc *ddc = data; return (mga_i2c_read_gpio(ddc->mdev) & ddc->data) ? 1 : 0; } -static int mga_gpio_getscl(void *data) +static int mgag200_ddc_algo_bit_data_getscl(void *data) { struct mgag200_ddc *ddc = data; @@ -129,10 +129,10 @@ struct i2c_adapter *mgag200_ddc_create(struct mga_device *mdev) bit = &ddc->bit; bit->data = ddc; - bit->setsda = mga_gpio_setsda; - bit->setscl = mga_gpio_setscl; - bit->getsda = mga_gpio_getsda; - bit->getscl = mga_gpio_getscl; + bit->setsda = mgag200_ddc_algo_bit_data_setsda; + bit->setscl = mgag200_ddc_algo_bit_data_setscl; + bit->getsda = mgag200_ddc_algo_bit_data_getsda; + bit->getscl = mgag200_ddc_algo_bit_data_getscl; bit->udelay = 10; bit->timeout = usecs_to_jiffies(2200); -- 2.44.0