History

Merge branches 'acpi-cleanup' and 'acpi-video'

* acpi-cleanup: ACPI / battery: Fix incorrect sscanf() string in acpi_battery_init_alarm() ACPI / proc: remove unneeded NULL check ACPI / utils: remove a pointless NULL check * acpi-video: ACPI / video: Add HP EliteBook Revolve 810 to the blacklist

Rafael J. Wysocki committed 12 years ago

Commit a2ff34c3 parents 7fd9050 47a08c8 e18ac624 files · +10 −6Browse files

Unified · Split

4 files
  1. drivers/acpi/battery.c +1 −1
  2. drivers/acpi/proc.c +1 −1
  3. drivers/acpi/utils.c +0 −4
  4. drivers/acpi/video_detect.c +8 −0
drivers/acpi/battery.c+1−1
@@ -549,7 +549,7 @@ static ssize_t acpi_battery_alarm_store(struct device *dev, · 548 unmodified lines
549549 {
550550 unsigned long x;
551551 struct acpi_battery *battery = to_acpi_battery(dev_get_drvdata(dev));
552− if (sscanf(buf, "%ld\n", &x) == 1)
552+ if (sscanf(buf, "%lu\n", &x) == 1)
553553 battery->alarm = x/1000;
554554 if (acpi_battery_present(battery))
555555 acpi_battery_set_alarm(battery);
drivers/acpi/proc.c+1−1
@@ -60,7 +60,7 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset) · 59 unmodified lines
6060 seq_printf(seq, "%c%-8s %s:%s\n",
6161 dev->wakeup.flags.run_wake ? '*' : ' ',
6262 (device_may_wakeup(&dev->dev) ||
63− (ldev && device_may_wakeup(ldev))) ?
63+ device_may_wakeup(ldev)) ?
6464 "enabled" : "disabled",
6565 ldev->bus ? ldev->bus->name :
6666 "no-bus", dev_name(ldev));
drivers/acpi/utils.c+0−4
@@ -99,10 +99,6 @@ acpi_extract_package(union acpi_object *package, · 98 unmodified lines
9999
100100 union acpi_object *element = &(package->package.elements[i]);
101101
102− if (!element) {
103− return AE_BAD_DATA;
104− }
105−
106102 switch (element->type) {
107103
108104 case ACPI_TYPE_INTEGER:
drivers/acpi/video_detect.c+8−0
@@ -170,6 +170,14 @@ static struct dmi_system_id video_detect_dmi_table[] = { · 169 unmodified lines
170170 },
171171 {
172172 .callback = video_detect_force_vendor,
173+ .ident = "HP EliteBook Revolve 810",
174+ .matches = {
175+ DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
176+ DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook Revolve 810 G1"),
177+ },
178+ },
179+ {
180+ .callback = video_detect_force_vendor,
173181 .ident = "Lenovo Yoga 13",
174182 .matches = {
175183 DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),