summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-mlxreg.c
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-06-26 18:00:13 +0200
committerLee Jones <lee@kernel.org>2024-06-26 17:08:30 +0100
commit31379a57cf2f155eb147ace86547b7143592945a (patch)
treecc9bdceab05004ddec8ef2857f5e8928c94d4d31 /drivers/leds/leds-mlxreg.c
parent42a9eaac9784e9b3df56f1947526d7d4d0ed9b26 (diff)
leds: leds-lp55xx: Generalize update_program_memory function
LED Driver based on lp55xx all use the same logic to write memory in SMEM. The only difference is that legacy chip doesn't support pages and have the engine regs one after another. To handle this apply the same logic used for load_engine also for update_program_memory. Introduce a new config in device_config, base_prog. For LED chip that doesn't support pages, offset this values of 32 for each engine. Update all lp55xx based LED driver to use this new function and define all the required bits. Suggested-by: Lee Jones <lee@kernel.org> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Link: https://lore.kernel.org/r/20240626160027.19703-9-ansuelsmth@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/leds-mlxreg.c')
0 files changed, 0 insertions, 0 deletions