diff options
author | Christian Marangi <[email protected]> | 2024-06-26 18:00:09 +0200 |
---|---|---|
committer | Lee Jones <[email protected]> | 2024-06-26 17:08:30 +0100 |
commit | db30c2891bfc74acb8823edee5f39cbc36bd9a4d (patch) | |
tree | dc5c978901b4d70f55f2703ca574ba4ea159dc06 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | a9b202b9cf0e817be756a720920ad4b522e6f6aa (diff) |
leds: leds-lp55xx: Generalize probe/remove functions
Now that stop_all_engine is generalized, probe and remove function are
the same across every lp55xx based LED driver and can be generalized.
To permit to use a common probe, make use of the OF match_data and i2c
driver_data value to store the device_config struct specific for the
LED.
Also drop the now unused exported symbol in lp55xx-common and make them
static.
Update any lp55xx based LED driver to use the new generic probe/remove.
Suggested-by: Lee Jones <[email protected]>
Signed-off-by: Christian Marangi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions