Commit 471d4ee1 authored by Thomas Zimmermann's avatar Thomas Zimmermann

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: default avatarThomas 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: default avatarJavier Martinez Canillas <javierm@redhat.com>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-3-tzimmermann@suse.de
parent 992bddda
...@@ -104,7 +104,7 @@ static int bd6107_backlight_check_fb(struct backlight_device *backlight, ...@@ -104,7 +104,7 @@ static int bd6107_backlight_check_fb(struct backlight_device *backlight,
{ {
struct bd6107 *bd = bl_get_data(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 = { static const struct backlight_ops bd6107_backlight_ops = {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
struct device; struct device;
struct bd6107_platform_data { struct bd6107_platform_data {
struct device *fbdev; struct device *dev;
unsigned int def_value; unsigned int def_value;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment