backlight/bd6107: Rename struct bd6107_platform_data.fbdev to 'dev'
Rename struct bd6107_platform_data.fbdev to 'dev', as it stores a pointer to the Linux platform device; not the fbdev device. Makes the code easier to understand. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Cc: Lee Jones <lee@kernel.org> Cc: Daniel Thompson <daniel.thompson@linaro.org> Cc: Jingoo Han <jingoohan1@gmail.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-3-tzimmermann@suse.de
This commit is contained in:
parent
992bdddaab
commit
471d4ee100
@ -104,7 +104,7 @@ static int bd6107_backlight_check_fb(struct backlight_device *backlight,
|
||||
{
|
||||
struct bd6107 *bd = bl_get_data(backlight);
|
||||
|
||||
return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->device;
|
||||
return !bd->pdata->dev || bd->pdata->dev == info->device;
|
||||
}
|
||||
|
||||
static const struct backlight_ops bd6107_backlight_ops = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
struct device;
|
||||
|
||||
struct bd6107_platform_data {
|
||||
struct device *fbdev;
|
||||
struct device *dev;
|
||||
unsigned int def_value;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user