On Mon, Nov 28, 2022 at 10:44 PM Hans de Goede <hdegoede@xxxxxxxxxx> wrote: > Patches 1-2: 2 small bugfixes to the gpio-tps68470 code Good, please merge this. > Patch3: Add support for the indicator LED outputs on the tps68470 as GPIOs > Patch4: Add support for a privacy LED to the ov8865 sensor driver > Patch5: Add gpio-lookup table entry for the privacy LED. OK so I have to call out the hippo in the room: these "gpios" are not called "gpios" anywhere else than in this patch. General purpose input/output, remember. These are special purpose LED control registers. So can you provide a good explanation why these registers aren't handled in the drivers/led subsystem instead? IIUC the leds subsystem has gained support for leds as resources. I don't mind a LED driver inside of the GPIO driver if that is what it takes as a compromise, just that it should be handled by the right subsystem. Given that flash leds which are used by cameras are already in drivers/leds/flash this should be no different and there will be more cameras with these privacy leds. Yours, Linus Walleij