aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichał Kępień <[email protected]>2017-05-19 09:44:42 +0200
committerDarren Hart (VMware) <[email protected]>2017-06-03 12:03:26 -0700
commit679374e49c6f6691f5b19751b3a2e36cba0c4a4d (patch)
treeb0e0c8118cd9128af7a83fb229f3352bea3eac27 /tools/perf/scripts/python
parent7ec3b54d162f5f1794a153e038b3940497579599 (diff)
platform/x86: fujitsu-laptop: allocate fujitsu_bl in acpi_fujitsu_bl_add()
Only allocate memory for struct fujitsu_bl when the FUJ02B1 ACPI device is present. Use devm_kzalloc() for allocating memory to simplify cleanup. Due to the fact that the power property of the backlight device created by the backlight driver is accessed from acpi_fujitsu_laptop_add(), pointer to the allocated memory will remain stored in a module-wide variable until the backlight driver is extracted into a separate module. 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