leds: leds-mt6323: Specify registers and specs in platform data
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 1 Jun 2023 11:08:09 +0000 (13:08 +0200)
committerLee Jones <lee@kernel.org>
Fri, 9 Jun 2023 06:42:40 +0000 (07:42 +0100)
commit3ec0b29e596270fd02bbe1656c5005e0c38b8ce0
tree0894a3e2331c966fae0c8ff8a921a854416a518d
parent0642b7e8384226aedfe82f6bc8242fbf2454ec6d
leds: leds-mt6323: Specify registers and specs in platform data

In order to enhance the flexibility of this driver and let it support
more than just one MediaTek LEDs IP for more than just one PMIC,
add platform data structure specifying the register offsets and
data that commonly varies between different IPs.

This commit brings no functional changes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230601110813.2373764-5-angelogioacchino.delregno@collabora.com
drivers/leds/leds-mt6323.c