Re: (subset) [PATCH] leds: lm3642: Fix container_of() member confusion in pin attributes
From: Lee Jones
Date: Thu Nov 26 2026 - 06:39:43 EST
On Sun, 15 Nov 2026 16:02:13 +0800, Ziheng Wei wrote:
> The strobe_pin and torch_pin sysfs attributes are registered on the
> flash and torch LED class devices respectively, but their store
> callbacks recover the chip data by container_of() on cdev_indicator.
>
> dev_get_drvdata() in the attribute callbacks returns the led_classdev
> that owns the attribute group:
>
> [...]
Applied, thanks!
[1/1] leds: lm3642: Fix container_of() member confusion in pin attributes
commit: c8fda3f82a9b9a29bae152571bd66c1ff36646e3
--
Lee Jones [李琼斯]