]> git.dujemihanovic.xyz Git - linux.git/commit
leds: ktd2692: move ExpressWire code to library
authorDuje Mihanović <duje.mihanovic@skole.hr>
Fri, 19 Jan 2024 17:41:21 +0000 (18:41 +0100)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Sat, 20 Jan 2024 19:52:04 +0000 (20:52 +0100)
commit85b929eb699e736364555bddbf5f8f3276118839
tree02a2fa39b269f5733c629d11383733ee16ffc42c
parent8d451d696b201312c80a31af493d119e7800ff49
leds: ktd2692: move ExpressWire code to library

The ExpressWire protocol is shared between at least KTD2692 and KTD2801
with slight differences such as timings and the former not having a
defined set of pulses for enabling the protocol (possibly because it
does not support PWM unlike KTD2801). Despite these differences the
ExpressWire handling code can be shared between the two, so move it into
a library in preparation for adding KTD2801 support.

Suggested-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
MAINTAINERS
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/flash/Kconfig
drivers/leds/flash/leds-ktd2692.c
drivers/leds/leds-expresswire.c [new file with mode: 0644]
include/linux/leds-expresswire.h [new file with mode: 0644]