diff options
| author | Michał Kępień <[email protected]> | 2017-04-07 15:07:09 +0200 |
|---|---|---|
| committer | Darren Hart (VMware) <[email protected]> | 2017-04-19 12:57:07 -0700 |
| commit | 7adb7b129ac0359b49a8406376a5aee8ce754b97 (patch) | |
| tree | 47d62f4a3d16272a2710ee7093c0d0a4412670ef /tools/perf/scripts/python | |
| parent | d89bcc83e7090ac09c3f9712d9b9db9f1f1d8189 (diff) | |
platform/x86: fujitsu-laptop: refactor LED registration
Move a long section of code responsible for registering LEDs out of
acpi_fujitsu_laptop_add() to improve readability and ensure proper
cleanup of platform device and kfifo e.g. when two supported LEDs are
detected, the first one gets registered successfully but the second one
does not. This makes the result variable in acpi_fujitsu_laptop_add()
redundant, so remove it. Adjust whitespace to make checkpatch happy.
Signed-off-by: Michał Kępień <[email protected]>
Reviewed-by: Jonathan Woithe <[email protected]>
Signed-off-by: Darren Hart (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions