diff options
author | Johan Hovold <johan@kernel.org> | 2014-06-25 10:08:47 -0700 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-06-25 15:10:54 -0700 |
commit | 0d25376c326220687a2dccb5c40b785a7499326c (patch) | |
tree | 7ff26332ab553647fa143ea55cf40bf98a716d37 /drivers/video | |
parent | 9db9386016c6cfc6a6af3bacc7043cab8ff04ecf (diff) |
leds: lm355x: fix attribute-creation race
Use the attribute groups of the led-class to create the indicator-LED
attributes during probe in order to avoid racing with userspace.
Note that the comment about the pattern attribute only being for LM3554
was incorrect and did not match the code (the original leds-lm3556
driver had the attribute before LM3554 support was added).
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions