]> git.baikalelectronics.ru Git - kernel.git/commit
drm/solomon: Move device info from ssd130x-i2c to the core driver
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 19 Apr 2022 21:48:22 +0000 (23:48 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Wed, 20 Apr 2022 16:48:17 +0000 (18:48 +0200)
commit5c9b20a0e79d1afee822e10d4bc00ae14ca2054a
treec9fe0ad96948534358834d2102ebe5df4fd15ad7
parent6d19796cb53d601c34ff0f629760467d92317445
drm/solomon: Move device info from ssd130x-i2c to the core driver

These are declared in the ssd130x-i2c transport driver but the information
is not I2C specific, and could be used by other SSD130x transport drivers.

Move them to the ssd130x core driver and just set the OF device entries to
an ID that could be used to lookup the correct device info from an array.

While being there, also move the SSD130X_DATA and SSD130X_COMMAND control
bytes. Since even though they are used by the I2C interface, they could
also be useful for other transport protocols such as SPI.

Suggested-by: Chen-Yu Tsai <wens@kernel.org>
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-5-javierm@redhat.com
drivers/gpu/drm/solomon/ssd130x-i2c.c
drivers/gpu/drm/solomon/ssd130x.c
drivers/gpu/drm/solomon/ssd130x.h