mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] leds-mt6323: Make driver flexible and cleanups
@ 2022-05-16  9:42 AngeloGioacchino Del Regno
  2022-05-16  9:42 ` [PATCH 1/3] leds: leds-mt6323: Specify registers and specs in platform data AngeloGioacchino Del Regno
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-05-16  9:42 UTC (permalink / raw)
  To: sean.wang
  Cc: pavel, matthias.bgg, linux-leds, linux-arm-kernel,
	linux-mediatek, linux-kernel, kernel, AngeloGioacchino Del Regno

MT6323 is not the only PMIC that has a LEDs controller IP and it was
found that the others do have a compatible register layout, except
for some register offsets.
The logic contained in this driver can be totally reused for other
PMICs as well, so I can't see any reason to keep this specific to
the MT6323 part.

This series brings meaningful platform data to this driver, giving
it flexibility and making it possible and straightforward to add
support for other (older, or newer!) PMICs.

AngeloGioacchino Del Regno (3):
  leds: leds-mt6323: Specify registers and specs in platform data
  leds: leds-mt6323: Open code and drop MT6323_CAL_HW_DUTY macro
  leds: leds-mt6323: Drop MT6323_ prefix from macros and defines

 drivers/leds/leds-mt6323.c | 258 ++++++++++++++++++++++++-------------
 1 file changed, 166 insertions(+), 92 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-22 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16  9:42 [PATCH 0/3] leds-mt6323: Make driver flexible and cleanups AngeloGioacchino Del Regno
2022-05-16  9:42 ` [PATCH 1/3] leds: leds-mt6323: Specify registers and specs in platform data AngeloGioacchino Del Regno
2022-05-16  9:42 ` [PATCH 2/3] leds: leds-mt6323: Open code and drop MT6323_CAL_HW_DUTY macro AngeloGioacchino Del Regno
2022-05-16  9:42 ` [PATCH 3/3] leds: leds-mt6323: Drop MT6323_ prefix from macros and defines AngeloGioacchino Del Regno
2022-06-22 13:53 ` [PATCH 0/3] leds-mt6323: Make driver flexible and cleanups AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®