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

From: Thomas Weißschuh

Date: Mon Jul 13 2026 - 16:28:04 EST


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 <i@xxxxxxxx>
> ---
> Documentation/leds/leds-class.rst | 5 +++++
> include/linux/leds.h | 1 +
> 2 files changed, 6 insertions(+)

(...)