diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-06-26 18:00:09 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-06-26 17:08:30 +0100 |
commit | db30c2891bfc74acb8823edee5f39cbc36bd9a4d (patch) | |
tree | dc5c978901b4d70f55f2703ca574ba4ea159dc06 /scripts/Makefile.defconf | |
parent | a9b202b9cf0e817be756a720920ad4b522e6f6aa (diff) | |
download | lwn-db30c2891bfc74acb8823edee5f39cbc36bd9a4d.tar.gz lwn-db30c2891bfc74acb8823edee5f39cbc36bd9a4d.zip |
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 <lee@kernel.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20240626160027.19703-5-ansuelsmth@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/Makefile.defconf')
0 files changed, 0 insertions, 0 deletions