input: lm8323: fix attribute-creation race
Use the attribute groups of the led-class to create the time attribute during probe in order to avoid racing with userspace. Signed-off-by: NJohan Hovold <johan@kernel.org> Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: NBryan Wu <cooloney@gmail.com>
Showing
想要评论请 注册 或 登录