Thomas Zimmermann
e6c6fea5c3
backlight: Match backlight device against struct fb_info.bl_dev
...
Framebuffer drivers for devices with dedicated backlight are supposed
to set struct fb_info.bl_dev to the backlight's respective device. Use
the value to match backlight and framebuffer in the backlight core code.
The code first tests against struct backlight_ops.check_ops. If this
test succeeds, it performs the test against fbdev. So backlight drivers
can override the later test as before.
Fbdev's backlight support depends on CONFIG_FB_BACKLIGHT. To avoid
ifdef in the code, the new helper fb_bl_device() returns the backlight
device, or NULL if the config option has been disabled. The test in
the backlight code will then do nothing.
v4:
* declare empty fb_bl_device() as static inline
* export fb_bl_device()
v3:
* hide ifdef in fb_bl_device() (Lee)
* no if-else blocks (Andy)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org >
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com >
Link: https://lore.kernel.org/r/20240305162425.23845-2-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org >
2024-03-28 10:08:47 +00:00
..
2023-10-31 10:47:50 +10:00
2024-03-28 10:08:47 +00:00
2024-01-23 10:11:38 +01:00
2023-10-19 12:55:32 +02:00
2023-08-24 07:26:06 +10:00
2024-01-18 21:10:41 +01:00
2024-03-15 10:01:27 +01:00
2024-02-08 11:54:58 +00:00
2023-10-19 12:55:53 +02:00
2023-11-29 12:20:44 +01:00
2024-03-21 19:37:20 +01:00
2023-10-19 12:56:16 +02:00
2024-01-21 09:00:14 +01:00
2024-01-21 09:00:14 +01:00
2024-03-15 10:05:35 +01:00
2023-10-19 12:54:16 +02:00
2023-11-29 12:20:08 +01:00
2023-11-10 09:16:02 +01:00
2023-11-29 12:20:14 +01:00
2024-03-16 08:29:48 +01:00
2023-08-04 15:54:34 +02:00
2023-10-19 12:54:38 +02:00
2023-11-10 07:34:19 +01:00
2023-11-29 12:20:44 +01:00
2023-11-29 12:20:44 +01:00
2023-07-31 20:07:24 +02:00
2023-09-22 16:28:36 +10:00
2023-08-04 15:54:35 +02:00
2023-09-22 16:28:36 +10:00
2023-09-22 16:28:36 +10:00
2023-09-22 16:28:36 +10:00
2024-03-07 13:33:34 +01:00
2023-10-19 12:54:52 +02:00
2023-11-29 12:20:35 +01:00
2023-10-19 12:54:56 +02:00
2023-10-19 12:54:59 +02:00
2024-01-18 17:29:01 -08:00
2023-08-04 15:54:35 +02:00
2023-10-19 12:55:07 +02:00
2024-02-14 10:09:21 +01:00
2023-11-29 12:20:44 +01:00
2023-09-22 16:28:36 +10:00
2023-08-04 15:54:35 +02:00
2024-01-11 17:09:01 +01:00
2023-09-02 08:18:40 -07:00
2023-11-29 12:20:44 +01:00
2023-08-24 07:26:06 +10:00
2023-08-24 07:26:06 +10:00
2023-08-04 15:54:36 +02:00
2023-07-31 20:07:24 +02:00
2024-03-06 13:07:39 -08:00
2023-10-19 12:55:23 +02:00
2023-10-19 12:55:27 +02:00
2024-03-01 08:19:11 +00:00
2024-01-18 21:10:41 +01:00
2023-11-07 14:42:34 +01:00
2024-01-11 17:09:01 +01:00
2024-03-22 10:09:08 -07:00
2023-09-22 16:28:36 +10:00
2023-08-04 15:54:36 +02:00
2024-01-12 12:38:37 +01:00
2023-08-04 15:54:36 +02:00
2023-07-31 20:07:24 +02:00
2023-10-19 12:55:48 +02:00
2023-08-04 15:54:37 +02:00
2023-11-07 14:42:34 +01:00
2023-09-22 16:28:36 +10:00
2023-08-24 07:26:06 +10:00
2023-10-19 12:56:00 +02:00
2023-10-19 12:56:04 +02:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:37 +02:00
2023-11-29 12:20:44 +01:00
2023-10-19 12:56:08 +02:00
2023-04-24 11:48:31 +02:00
2022-04-19 16:29:03 +02:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:38 +02:00
2023-10-19 12:56:23 +02:00
2023-08-04 15:54:38 +02:00
2024-03-16 08:29:48 +01:00
2023-11-29 12:20:44 +01:00
2023-11-29 12:20:44 +01:00
2023-08-28 09:43:53 +02:00
2023-08-04 15:54:38 +02:00
2023-11-29 12:20:44 +01:00
2023-12-14 10:31:45 +01:00
2023-07-24 16:50:38 +02:00
2023-10-19 12:56:43 +02:00
2023-11-29 12:20:10 +01:00
2023-11-29 12:20:44 +01:00
2023-12-20 16:07:04 +01:00
2023-08-04 15:54:38 +02:00
2024-01-23 09:13:24 +01:00
2023-10-19 12:56:55 +02:00
2023-08-24 07:26:06 +10:00
2023-08-24 07:26:06 +10:00
2023-09-22 16:28:36 +10:00
2024-01-18 21:10:41 +01:00
2024-01-27 19:03:51 -08:00
2024-01-18 21:10:41 +01:00
2023-11-29 12:20:44 +01:00
2024-03-15 09:25:07 +01:00
2023-08-04 15:54:38 +02:00
2023-12-18 11:26:34 +01:00
2023-11-29 12:20:44 +01:00
2024-03-16 08:29:48 +01:00
2024-01-21 08:49:56 +01:00
2024-03-16 08:29:48 +01:00
2023-11-29 12:20:38 +01:00
2023-05-18 11:06:19 +02:00
2023-07-31 20:07:24 +02:00
2023-08-24 07:26:06 +10:00