diff options
author | Stephan Linz <linz@li-pro.net> | 2016-06-10 01:59:58 -0400 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-06-27 02:58:40 -0400 |
commit | 83e2c70e84e2e0335deae63fa52bee14481fecbe (patch) | |
tree | 7998d5427b6882f407c9786c4aa9f47731d8523b /drivers/macintosh | |
parent | 86ab168614f7ddce0800456ab6da2cf40286a5b2 (diff) |
powerpc: use the new LED disk activity trigger
- dts: rename 'ide-disk' to 'disk-activity'
- defconfig: rename 'ADB_PMU_LED_IDE' to 'ADB_PMU_LED_DISK'
Cc: Joseph Jezak <josejx@gentoo.org>
Cc: Jörg Sommer <joerg@alea.gnuu.de>
Signed-off-by: Stephan Linz <linz@li-pro.net>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/Kconfig | 13 | ||||
-rw-r--r-- | drivers/macintosh/via-pmu-led.c | 4 |
2 files changed, 8 insertions, 9 deletions
diff --git a/drivers/macintosh/Kconfig b/drivers/macintosh/Kconfig index 3e8b29e41420..d28690f6e262 100644 --- a/drivers/macintosh/Kconfig +++ b/drivers/macintosh/Kconfig | |||
@@ -96,19 +96,18 @@ config ADB_PMU_LED | |||
96 | Support the front LED on Power/iBooks as a generic LED that can | 96 | Support the front LED on Power/iBooks as a generic LED that can |
97 | be triggered by any of the supported triggers. To get the | 97 | be triggered by any of the supported triggers. To get the |
98 | behaviour of the old CONFIG_BLK_DEV_IDE_PMAC_BLINK, select this | 98 | behaviour of the old CONFIG_BLK_DEV_IDE_PMAC_BLINK, select this |
99 | and the ide-disk LED trigger and configure appropriately through | 99 | and the disk LED trigger and configure appropriately through sysfs. |
100 | sysfs. | ||
101 | 100 | ||
102 | config ADB_PMU_LED_IDE | 101 | config ADB_PMU_LED_DISK |
103 | bool "Use front LED as IDE LED by default" | 102 | bool "Use front LED as DISK LED by default" |
104 | depends on ADB_PMU_LED | 103 | depends on ADB_PMU_LED |
105 | depends on LEDS_CLASS | 104 | depends on LEDS_CLASS |
106 | depends on IDE_GD_ATA | 105 | depends on IDE_GD_ATA |
107 | select LEDS_TRIGGERS | 106 | select LEDS_TRIGGERS |
108 | select LEDS_TRIGGER_IDE_DISK | 107 | select LEDS_TRIGGER_DISK |
109 | help | 108 | help |
110 | This option makes the front LED default to the IDE trigger | 109 | This option makes the front LED default to the disk trigger |
111 | so that it blinks on IDE activity. | 110 | so that it blinks on disk activity. |
112 | 111 | ||
113 | config PMAC_SMU | 112 | config PMAC_SMU |
114 | bool "Support for SMU based PowerMacs" | 113 | bool "Support for SMU based PowerMacs" |
diff --git a/drivers/macintosh/via-pmu-led.c b/drivers/macintosh/via-pmu-led.c index 19c371809d77..ae067ab2373d 100644 --- a/drivers/macintosh/via-pmu-led.c +++ b/drivers/macintosh/via-pmu-led.c | |||
@@ -73,8 +73,8 @@ static void pmu_led_set(struct led_classdev *led_cdev, | |||
73 | 73 | ||
74 | static struct led_classdev pmu_led = { | 74 | static struct led_classdev pmu_led = { |
75 | .name = "pmu-led::front", | 75 | .name = "pmu-led::front", |
76 | #ifdef CONFIG_ADB_PMU_LED_IDE | 76 | #ifdef CONFIG_ADB_PMU_LED_DISK |
77 | .default_trigger = "ide-disk", | 77 | .default_trigger = "disk-activity", |
78 | #endif | 78 | #endif |
79 | .brightness_set = pmu_led_set, | 79 | .brightness_set = pmu_led_set, |
80 | }; | 80 | }; |