diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2024-09-06 10:52:41 +0300 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2024-09-30 18:49:42 +0300 |
| commit | 02e224d096ef58fe59e96609de6018e133f33512 (patch) | |
| tree | ffd802c4c4ccc97f4110629ca5c7cc8937936241 /include/linux | |
| parent | 43e1120deb3768c86aa3875c7073658e44a30ea5 (diff) | |
| download | linux-02e224d096ef58fe59e96609de6018e133f33512.tar.xz | |
backlight: lcd: Remove struct fb_videomode from set_mode callback
Implementations of struct lcd_ops.set_mode only require the resolution
from struct fb_videomode. Pass the xres and yres fields, but remove the
dependency on the fbdev data structure.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240906075439.98476-28-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/lcd.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/lcd.h b/include/linux/lcd.h index 8399b5ed48f2..59a80b396a71 100644 --- a/include/linux/lcd.h +++ b/include/linux/lcd.h @@ -51,8 +51,11 @@ struct lcd_ops { int (*get_contrast)(struct lcd_device *); /* Set LCD panel contrast */ int (*set_contrast)(struct lcd_device *, int contrast); - /* Set LCD panel mode (resolutions ...) */ - int (*set_mode)(struct lcd_device *, struct fb_videomode *); + + /* + * Set LCD panel mode (resolutions ...) + */ + int (*set_mode)(struct lcd_device *lcd, u32 xres, u32 yres); /* * Check if the LCD controls the given display device. This |
