Skip to content

Commit 7b4baa3

Browse files
committed
Merge branches 'acpi-ec', 'acpi-ac', 'acpi-fan', 'acpi-video' and 'acpi-amba'
Merge EC, AC, fan and backlight driver changes and ACPI AMBA support update for 6.1-rc1: - Drop unneeded result variable from ec_write() (ye xingchen). - Remove the leftover struct acpi_ac_bl from the ACPI AC driver (Hanjun Guo). - Reorder symbols to get rid of a few forward declarations in the ACPI fan driver (Uwe Kleine-König). - Add Toshiba Satellite/Portege Z830 ACPI backlight quirk (Arvid Norlander). - Add ARM DMA-330 controller to the supported list in the ACPI AMBA driver (Vijayenthiran Subramaniam). * acpi-ec: ACPI: EC: Drop unneeded result variable from ec_write() * acpi-ac: ACPI: AC: Remove the leftover struct acpi_ac_bl * acpi-fan: ACPI: fan: Reorder symbols to get rid of a few forward declarations * acpi-video: ACPI: video: Add Toshiba Satellite/Portege Z830 quirk * acpi-amba: ACPI: AMBA: Add ARM DMA-330 controller to the supported list
6 parents b1d03b7 + b3c0e38 + f336443 + f23470e + 574160b + 53e7380 commit 7b4baa3

File tree

5 files changed

+45
-41
lines changed

5 files changed

+45
-41
lines changed

drivers/acpi/ac.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ static int acpi_ac_add(struct acpi_device *device);
3636
static int acpi_ac_remove(struct acpi_device *device);
3737
static void acpi_ac_notify(struct acpi_device *device, u32 event);
3838

39-
struct acpi_ac_bl {
40-
const char *hid;
41-
int hrv;
42-
};
43-
4439
static const struct acpi_device_id ac_device_ids[] = {
4540
{"ACPI0003", 0},
4641
{"", 0},

drivers/acpi/acpi_amba.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
static const struct acpi_device_id amba_id_list[] = {
2323
{"ARMH0061", 0}, /* PL061 GPIO Device */
24+
{"ARMH0330", 0}, /* ARM DMA Controller DMA-330 */
2425
{"ARMHC500", 0}, /* ARM CoreSight ETM4x */
2526
{"ARMHC501", 0}, /* ARM CoreSight ETR */
2627
{"ARMHC502", 0}, /* ARM CoreSight STM */

drivers/acpi/acpi_video.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,22 @@ static const struct dmi_system_id video_dmi_table[] = {
496496
DMI_MATCH(DMI_PRODUCT_NAME, "SATELLITE R830"),
497497
},
498498
},
499+
{
500+
.callback = video_disable_backlight_sysfs_if,
501+
.ident = "Toshiba Satellite Z830",
502+
.matches = {
503+
DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
504+
DMI_MATCH(DMI_PRODUCT_NAME, "SATELLITE Z830"),
505+
},
506+
},
507+
{
508+
.callback = video_disable_backlight_sysfs_if,
509+
.ident = "Toshiba Portege Z830",
510+
.matches = {
511+
DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
512+
DMI_MATCH(DMI_PRODUCT_NAME, "PORTEGE Z830"),
513+
},
514+
},
499515
/*
500516
* Some machine's _DOD IDs don't have bit 31(Device ID Scheme) set
501517
* but the IDs actually follow the Device ID Scheme.

drivers/acpi/ec.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -917,14 +917,10 @@ EXPORT_SYMBOL(ec_read);
917917

918918
int ec_write(u8 addr, u8 val)
919919
{
920-
int err;
921-
922920
if (!first_ec)
923921
return -ENODEV;
924922

925-
err = acpi_ec_write(first_ec, addr, val);
926-
927-
return err;
923+
return acpi_ec_write(first_ec, addr, val);
928924
}
929925
EXPORT_SYMBOL(ec_write);
930926

drivers/acpi/fan_core.c

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,12 @@
1919

2020
#include "fan.h"
2121

22-
MODULE_AUTHOR("Paul Diefenbaugh");
23-
MODULE_DESCRIPTION("ACPI Fan Driver");
24-
MODULE_LICENSE("GPL");
25-
26-
static int acpi_fan_probe(struct platform_device *pdev);
27-
static int acpi_fan_remove(struct platform_device *pdev);
28-
2922
static const struct acpi_device_id fan_device_ids[] = {
3023
ACPI_FAN_DEVICE_IDS,
3124
{"", 0},
3225
};
3326
MODULE_DEVICE_TABLE(acpi, fan_device_ids);
3427

35-
#ifdef CONFIG_PM_SLEEP
36-
static int acpi_fan_suspend(struct device *dev);
37-
static int acpi_fan_resume(struct device *dev);
38-
static const struct dev_pm_ops acpi_fan_pm = {
39-
.resume = acpi_fan_resume,
40-
.freeze = acpi_fan_suspend,
41-
.thaw = acpi_fan_resume,
42-
.restore = acpi_fan_resume,
43-
};
44-
#define FAN_PM_OPS_PTR (&acpi_fan_pm)
45-
#else
46-
#define FAN_PM_OPS_PTR NULL
47-
#endif
48-
49-
static struct platform_driver acpi_fan_driver = {
50-
.probe = acpi_fan_probe,
51-
.remove = acpi_fan_remove,
52-
.driver = {
53-
.name = "acpi-fan",
54-
.acpi_match_table = fan_device_ids,
55-
.pm = FAN_PM_OPS_PTR,
56-
},
57-
};
58-
5928
/* thermal cooling device callbacks */
6029
static int fan_get_max_state(struct thermal_cooling_device *cdev, unsigned long
6130
*state)
@@ -459,6 +428,33 @@ static int acpi_fan_resume(struct device *dev)
459428

460429
return result;
461430
}
431+
432+
static const struct dev_pm_ops acpi_fan_pm = {
433+
.resume = acpi_fan_resume,
434+
.freeze = acpi_fan_suspend,
435+
.thaw = acpi_fan_resume,
436+
.restore = acpi_fan_resume,
437+
};
438+
#define FAN_PM_OPS_PTR (&acpi_fan_pm)
439+
440+
#else
441+
442+
#define FAN_PM_OPS_PTR NULL
443+
462444
#endif
463445

446+
static struct platform_driver acpi_fan_driver = {
447+
.probe = acpi_fan_probe,
448+
.remove = acpi_fan_remove,
449+
.driver = {
450+
.name = "acpi-fan",
451+
.acpi_match_table = fan_device_ids,
452+
.pm = FAN_PM_OPS_PTR,
453+
},
454+
};
455+
464456
module_platform_driver(acpi_fan_driver);
457+
458+
MODULE_AUTHOR("Paul Diefenbaugh");
459+
MODULE_DESCRIPTION("ACPI Fan Driver");
460+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)