linux/drivers/gpu/drm/solomon
Amit Barzilai 2996ceebe3
drm/ssd130x: Add per-family update backlight logic
ssd130x_update_bl() runs for every SSD13xx panel, but it only works for
SSD130x and SSD132x: it writes the single global SSD13XX_CONTRAST (0x81)
command, which those two families expose.  SSD133x has no such command --
it has three per-channel contrast registers (CONTRAST_A/B/C) that must be
scaled together -- so ssd130x_update_bl() has no effect on it.

Make backlight_ops.update_status a per-family choice.  SSD130x and SSD132x
keep ssd130x_update_bl() because they share the SSD13XX_CONTRAST interface,
while SSD133x gets ssd133x_update_bl(), which drives the three channels
through ssd133x_set_contrast().

Signed-off-by: Amit Barzilai <amit.barzilai22@gmail.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patch.msgid.link/20260729053054.29374-3-amit.barzilai22@gmail.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
2026-08-06 14:55:55 +02:00
..
Kconfig drm/solomon: Run DRM default client setup 2024-09-26 09:31:28 +02:00
Makefile drm/solomon: Add SSD130x OLED displays SPI support 2022-04-20 18:48:17 +02:00
ssd130x-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ssd130x-spi.c drm/ssd130x: Remove the use of dev_err_probe() 2025-09-01 16:09:19 +02:00
ssd130x.c drm/ssd130x: Add per-family update backlight logic 2026-08-06 14:55:55 +02:00
ssd130x.h drm/ssd130x: Add support for the SSD133x OLED controller family 2024-01-01 13:03:05 +01:00