Loading Documentation/acpi/dsd/leds.txt→Documentation/firmware-guide/acpi/dsd/leds.rst +16 −4 Original line number Diff line number Diff line .. SPDX-License-Identifier: GPL-2.0 .. include:: <isonum.txt> ======================================== Describing and referring to LEDs in ACPI ======================================== Individual LEDs are described by hierarchical data extension [6] nodes under the device node, the LED driver chip. The "reg" property in the LED specific nodes Loading @@ -25,8 +30,12 @@ entry shall contain the string "led@" followed by the number of the LED, followed by the referred object name. That object shall be named "LED" followed by the number of the LED. An ASL example of a camera sensor device and a LED driver device for two LEDs. Objects not relevant for LEDs or the references to them have been omitted. Example ======= An ASL example of a camera sensor device and a LED driver device for two LEDs is show below. Objects not relevant for LEDs or the references to them have been omitted. :: Device (LED) { Loading Loading @@ -71,12 +80,15 @@ Objects not relevant for LEDs or the references to them have been omitted. } where :: LED LED driver device LED0 First LED LED1 Second LED SEN Camera sensor device (or another device the LED is related to) SEN Camera sensor device (or another device the LED is related to) References ========== [1] Device tree. <URL:http://www.devicetree.org>, referenced 2019-02-21. Loading Documentation/firmware-guide/acpi/index.rst +1 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ ACPI Support namespace dsd/graph dsd/data-node-references dsd/leds enumeration osi method-customizing Loading drivers/acpi/sbshc.h +0 −2 Original line number Diff line number Diff line Loading @@ -15,8 +15,6 @@ enum acpi_smb_protocol { SMBUS_BLOCK_PROCESS_CALL = 0xd, }; static const u8 SMBUS_PEC = 0x80; enum acpi_sbs_device_addr { ACPI_SBS_CHARGER = 0x9, ACPI_SBS_MANAGER = 0xa, Loading drivers/acpi/thermal.c +3 −8 Original line number Diff line number Diff line Loading @@ -225,13 +225,9 @@ static int acpi_thermal_set_cooling_mode(struct acpi_thermal *tz, int mode) if (!tz) return -EINVAL; if (!acpi_has_method(tz->device->handle, "_SCP")) { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "_SCP not present\n")); if (ACPI_FAILURE(acpi_execute_simple_method(tz->device->handle, "_SCP", mode))) return -ENODEV; } else if (ACPI_FAILURE(acpi_execute_simple_method(tz->device->handle, "_SCP", mode))) { return -ENODEV; } return 0; } Loading Loading @@ -463,8 +459,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag) break; } if ((flag & ACPI_TRIPS_DEVICES) && acpi_has_method(tz->device->handle, "_TZD")) { if (flag & ACPI_TRIPS_DEVICES) { memset(&devices, 0, sizeof(devices)); status = acpi_evaluate_reference(tz->device->handle, "_TZD", NULL, &devices); Loading Loading
Documentation/acpi/dsd/leds.txt→Documentation/firmware-guide/acpi/dsd/leds.rst +16 −4 Original line number Diff line number Diff line .. SPDX-License-Identifier: GPL-2.0 .. include:: <isonum.txt> ======================================== Describing and referring to LEDs in ACPI ======================================== Individual LEDs are described by hierarchical data extension [6] nodes under the device node, the LED driver chip. The "reg" property in the LED specific nodes Loading @@ -25,8 +30,12 @@ entry shall contain the string "led@" followed by the number of the LED, followed by the referred object name. That object shall be named "LED" followed by the number of the LED. An ASL example of a camera sensor device and a LED driver device for two LEDs. Objects not relevant for LEDs or the references to them have been omitted. Example ======= An ASL example of a camera sensor device and a LED driver device for two LEDs is show below. Objects not relevant for LEDs or the references to them have been omitted. :: Device (LED) { Loading Loading @@ -71,12 +80,15 @@ Objects not relevant for LEDs or the references to them have been omitted. } where :: LED LED driver device LED0 First LED LED1 Second LED SEN Camera sensor device (or another device the LED is related to) SEN Camera sensor device (or another device the LED is related to) References ========== [1] Device tree. <URL:http://www.devicetree.org>, referenced 2019-02-21. Loading
Documentation/firmware-guide/acpi/index.rst +1 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ ACPI Support namespace dsd/graph dsd/data-node-references dsd/leds enumeration osi method-customizing Loading
drivers/acpi/sbshc.h +0 −2 Original line number Diff line number Diff line Loading @@ -15,8 +15,6 @@ enum acpi_smb_protocol { SMBUS_BLOCK_PROCESS_CALL = 0xd, }; static const u8 SMBUS_PEC = 0x80; enum acpi_sbs_device_addr { ACPI_SBS_CHARGER = 0x9, ACPI_SBS_MANAGER = 0xa, Loading
drivers/acpi/thermal.c +3 −8 Original line number Diff line number Diff line Loading @@ -225,13 +225,9 @@ static int acpi_thermal_set_cooling_mode(struct acpi_thermal *tz, int mode) if (!tz) return -EINVAL; if (!acpi_has_method(tz->device->handle, "_SCP")) { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "_SCP not present\n")); if (ACPI_FAILURE(acpi_execute_simple_method(tz->device->handle, "_SCP", mode))) return -ENODEV; } else if (ACPI_FAILURE(acpi_execute_simple_method(tz->device->handle, "_SCP", mode))) { return -ENODEV; } return 0; } Loading Loading @@ -463,8 +459,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag) break; } if ((flag & ACPI_TRIPS_DEVICES) && acpi_has_method(tz->device->handle, "_TZD")) { if (flag & ACPI_TRIPS_DEVICES) { memset(&devices, 0, sizeof(devices)); status = acpi_evaluate_reference(tz->device->handle, "_TZD", NULL, &devices); Loading