Skip to content

Commit 20eeeaf

Browse files
committed
Merge branches 'acpi-video', 'acpi-battery', 'acpi-config' and 'acpi-scan'
* acpi-video: ACPI: video: use ACPI backlight for HP 635 Notebook * acpi-battery: ACPI: battery: include linux/power_supply.h * acpi-config: ACPI: configfs: Add missing config_item_put() to fix refcount leak * acpi-scan: ACPI: scan: Replace ACPI_DEBUG_PRINT() with pr_debug()
5 parents acd448f + b226faa + 7d1eb2d + 9a2e849 + 05de068 commit 20eeeaf

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

drivers/acpi/acpi_configfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ static void acpi_table_drop_item(struct config_group *group,
228228

229229
ACPI_INFO(("Host-directed Dynamic ACPI Table Unload"));
230230
acpi_unload_table(table->index);
231+
config_item_put(cfg);
231232
}
232233

233234
static struct configfs_group_operations acpi_table_group_ops = {

drivers/acpi/scan.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,7 @@ static void acpi_bus_get_wakeup_device_flags(struct acpi_device *device)
898898
*/
899899
err = acpi_device_sleep_wake(device, 0, 0, 0);
900900
if (err)
901-
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
902-
"error in _DSW or _PSW evaluation\n"));
901+
pr_debug("error in _DSW or _PSW evaluation\n");
903902
}
904903

905904
static void acpi_bus_init_power_state(struct acpi_device *device, int state)

drivers/acpi/video_detect.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
282282
DMI_MATCH(DMI_PRODUCT_NAME, "530U4E/540U4E"),
283283
},
284284
},
285+
/* https://bugs.launchpad.net/bugs/1894667 */
286+
{
287+
.callback = video_detect_force_video,
288+
.ident = "HP 635 Notebook",
289+
.matches = {
290+
DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
291+
DMI_MATCH(DMI_PRODUCT_NAME, "HP 635 Notebook PC"),
292+
},
293+
},
285294

286295
/* Non win8 machines which need native backlight nevertheless */
287296
{

include/acpi/battery.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef __ACPI_BATTERY_H
33
#define __ACPI_BATTERY_H
44

5+
#include <linux/power_supply.h>
6+
57
#define ACPI_BATTERY_CLASS "battery"
68

79
#define ACPI_BATTERY_NOTIFY_STATUS 0x80

0 commit comments

Comments
 (0)