Skip to content

Commit fb19747

Browse files
drm/solomon: Add ssd130x new compatible strings and deprecate old ones.
The current compatible strings for SSD130x I2C controllers contain an "fb" and "-i2c" suffixes. These have been deprecated and more correct ones were added, that don't encode a subsystem or bus used to interface the devices. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Mark Brown <broonie@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patchwork.freedesktop.org/patch/msgid/20220419214824.335075-4-javierm@redhat.com
1 parent 1b6a796 commit fb19747

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

drivers/gpu/drm/solomon/ssd130x-i2c.c

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,26 @@ static struct ssd130x_deviceinfo ssd130x_ssd1309_deviceinfo = {
8888

8989
static const struct of_device_id ssd130x_of_match[] = {
9090
{
91-
.compatible = "sinowealth,sh1106-i2c",
91+
.compatible = "sinowealth,sh1106",
9292
.data = &ssd130x_sh1106_deviceinfo,
9393
},
94+
{
95+
.compatible = "solomon,ssd1305",
96+
.data = &ssd130x_ssd1305_deviceinfo,
97+
},
98+
{
99+
.compatible = "solomon,ssd1306",
100+
.data = &ssd130x_ssd1306_deviceinfo,
101+
},
102+
{
103+
.compatible = "solomon,ssd1307",
104+
.data = &ssd130x_ssd1307_deviceinfo,
105+
},
106+
{
107+
.compatible = "solomon,ssd1309",
108+
.data = &ssd130x_ssd1309_deviceinfo,
109+
},
110+
/* Deprecated but kept for backward compatibility */
94111
{
95112
.compatible = "solomon,ssd1305fb-i2c",
96113
.data = &ssd130x_ssd1305_deviceinfo,

0 commit comments

Comments
 (0)