Re: [PATCH RFC v2 1/9] leds: Add callback offloaded() to query the state of hardware control trigger

Thomas Weißschuh <[email protected]> Mon, 13 Jul 2026 22:27:35 +0200
Newsgroups dev.linux.lists.chrome-platform,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-leds,org.kernel.vger.netdev,org.kernel.vger.platform-driver-x86
Message-ID <[email protected]>
On 2026-06-18 00:47:55+0800, Rong Zhang wrote:
> There are multiple triggers implementing hardware control. However, the
> LED core doesn't really know the hardware control state since the
> coordination is done directly between the trigger and the LED device.
> 
> Add an offloaded() callback so that the LED core can query the hardware
> control state.

For review it would be easier if the code using the new callback was
introduced *before* the driver implementation.

> Signed-off-by: Rong Zhang <[email protected]>
> ---
>  Documentation/leds/leds-class.rst | 5 +++++
>  include/linux/leds.h              | 1 +
>  2 files changed, 6 insertions(+)

(...)