OSDN Git Service

drm/sun4i: dsi: Add a variant structure
authorSamuel Holland <samuel@sholland.org>
Mon, 7 Nov 2022 05:35:51 +0000 (23:35 -0600)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Nov 2022 13:09:54 +0000 (14:09 +0100)
commit1fa734a8163072e8f126259de2cadfa88d5bea70
treed1ae25c99e6fdc208fce1974e3bfec101344470f
parentc1c7b394d8c35b2696f0b9d5840504d69fbdfa23
drm/sun4i: dsi: Add a variant structure

Replace the ad-hoc calls to of_device_is_compatible() with a structure
describing the differences between variants. This is in preparation for
adding more variants to the driver.

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20221107053552.2330-4-samuel@sholland.org
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h