diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-19 23:10:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-19 23:10:30 -0400 |
commit | e6827bafd6b56fa25ec380840fe6f47e9a213fbe (patch) | |
tree | 14a57502a6d18c19a40de5a9dbaf304273f08971 | |
parent | dc847d5b4aa852c41b56c21bdc759fee13cc8f68 (diff) | |
parent | 2338f73d407d5abe2036d92716ba25ef5279c3d2 (diff) |
Merge tag 'led-fixes-for-v4.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds
Pull LED fixes from Jacek Anaszewski:
- fix module autoload for six OF platform drivers (aat1290, bcm6328,
bcm6358, ktd2692, max77693, ns2)
- aat1290: add missing static modifier
- ipaq-micro: add missing LEDS_CLASS dependency
- lp55xx: correct Kconfig dependecy for f/w user helper
* tag 'led-fixes-for-v4.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds:
leds:lp55xx: Correct Kconfig dependency for f/w user helper
leds: leds-ipaq-micro: Add LEDS_CLASS dependency
leds: aat1290: add 'static' modifier to init_mm_current_scale
leds: leds-ns2: Fix module autoload for OF platform driver
leds: max77693: Fix module autoload for OF platform driver
leds: ktd2692: Fix module autoload for OF platform driver
leds: bcm6358: Fix module autoload for OF platform driver
leds: bcm6328: Fix module autoload for OF platform driver
leds: aat1290: Fix module autoload for OF platform driver
-rw-r--r-- | drivers/leds/Kconfig | 3 | ||||
-rw-r--r-- | drivers/leds/leds-aat1290.c | 3 | ||||
-rw-r--r-- | drivers/leds/leds-bcm6328.c | 1 | ||||
-rw-r--r-- | drivers/leds/leds-bcm6358.c | 1 | ||||
-rw-r--r-- | drivers/leds/leds-ktd2692.c | 1 | ||||
-rw-r--r-- | drivers/leds/leds-max77693.c | 1 | ||||
-rw-r--r-- | drivers/leds/leds-ns2.c | 1 |
7 files changed, 9 insertions, 2 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 70f4255ff291..42990f2d0317 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig | |||
@@ -170,6 +170,7 @@ config LEDS_SUNFIRE | |||
170 | 170 | ||
171 | config LEDS_IPAQ_MICRO | 171 | config LEDS_IPAQ_MICRO |
172 | tristate "LED Support for the Compaq iPAQ h3xxx" | 172 | tristate "LED Support for the Compaq iPAQ h3xxx" |
173 | depends on LEDS_CLASS | ||
173 | depends on MFD_IPAQ_MICRO | 174 | depends on MFD_IPAQ_MICRO |
174 | help | 175 | help |
175 | Choose this option if you want to use the notification LED on | 176 | Choose this option if you want to use the notification LED on |
@@ -229,7 +230,7 @@ config LEDS_LP55XX_COMMON | |||
229 | tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501" | 230 | tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501" |
230 | depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501 | 231 | depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501 |
231 | select FW_LOADER | 232 | select FW_LOADER |
232 | select FW_LOADER_USER_HELPER_FALLBACK | 233 | select FW_LOADER_USER_HELPER |
233 | help | 234 | help |
234 | This option supports common operations for LP5521/5523/55231/5562/8501 | 235 | This option supports common operations for LP5521/5523/55231/5562/8501 |
235 | devices. | 236 | devices. |
diff --git a/drivers/leds/leds-aat1290.c b/drivers/leds/leds-aat1290.c index fd7c25fd29c1..ac77d36b630c 100644 --- a/drivers/leds/leds-aat1290.c +++ b/drivers/leds/leds-aat1290.c | |||
@@ -331,7 +331,7 @@ static void aat1290_led_validate_mm_current(struct aat1290_led *led, | |||
331 | cfg->max_brightness = b + 1; | 331 | cfg->max_brightness = b + 1; |
332 | } | 332 | } |
333 | 333 | ||
334 | int init_mm_current_scale(struct aat1290_led *led, | 334 | static int init_mm_current_scale(struct aat1290_led *led, |
335 | struct aat1290_led_config_data *cfg) | 335 | struct aat1290_led_config_data *cfg) |
336 | { | 336 | { |
337 | int max_mm_current_percent[] = { 20, 22, 25, 28, 32, 36, 40, 45, 50, 56, | 337 | int max_mm_current_percent[] = { 20, 22, 25, 28, 32, 36, 40, 45, 50, 56, |
@@ -559,6 +559,7 @@ static const struct of_device_id aat1290_led_dt_match[] = { | |||
559 | { .compatible = "skyworks,aat1290" }, | 559 | { .compatible = "skyworks,aat1290" }, |
560 | {}, | 560 | {}, |
561 | }; | 561 | }; |
562 | MODULE_DEVICE_TABLE(of, aat1290_led_dt_match); | ||
562 | 563 | ||
563 | static struct platform_driver aat1290_led_driver = { | 564 | static struct platform_driver aat1290_led_driver = { |
564 | .probe = aat1290_led_probe, | 565 | .probe = aat1290_led_probe, |
diff --git a/drivers/leds/leds-bcm6328.c b/drivers/leds/leds-bcm6328.c index 986fe1e28f84..1793727bc9ae 100644 --- a/drivers/leds/leds-bcm6328.c +++ b/drivers/leds/leds-bcm6328.c | |||
@@ -395,6 +395,7 @@ static const struct of_device_id bcm6328_leds_of_match[] = { | |||
395 | { .compatible = "brcm,bcm6328-leds", }, | 395 | { .compatible = "brcm,bcm6328-leds", }, |
396 | { }, | 396 | { }, |
397 | }; | 397 | }; |
398 | MODULE_DEVICE_TABLE(of, bcm6328_leds_of_match); | ||
398 | 399 | ||
399 | static struct platform_driver bcm6328_leds_driver = { | 400 | static struct platform_driver bcm6328_leds_driver = { |
400 | .probe = bcm6328_leds_probe, | 401 | .probe = bcm6328_leds_probe, |
diff --git a/drivers/leds/leds-bcm6358.c b/drivers/leds/leds-bcm6358.c index 21f96930b3be..7ea3526702e0 100644 --- a/drivers/leds/leds-bcm6358.c +++ b/drivers/leds/leds-bcm6358.c | |||
@@ -226,6 +226,7 @@ static const struct of_device_id bcm6358_leds_of_match[] = { | |||
226 | { .compatible = "brcm,bcm6358-leds", }, | 226 | { .compatible = "brcm,bcm6358-leds", }, |
227 | { }, | 227 | { }, |
228 | }; | 228 | }; |
229 | MODULE_DEVICE_TABLE(of, bcm6358_leds_of_match); | ||
229 | 230 | ||
230 | static struct platform_driver bcm6358_leds_driver = { | 231 | static struct platform_driver bcm6358_leds_driver = { |
231 | .probe = bcm6358_leds_probe, | 232 | .probe = bcm6358_leds_probe, |
diff --git a/drivers/leds/leds-ktd2692.c b/drivers/leds/leds-ktd2692.c index 2ae8c4d17ff8..feca07be85f5 100644 --- a/drivers/leds/leds-ktd2692.c +++ b/drivers/leds/leds-ktd2692.c | |||
@@ -426,6 +426,7 @@ static const struct of_device_id ktd2692_match[] = { | |||
426 | { .compatible = "kinetic,ktd2692", }, | 426 | { .compatible = "kinetic,ktd2692", }, |
427 | { /* sentinel */ }, | 427 | { /* sentinel */ }, |
428 | }; | 428 | }; |
429 | MODULE_DEVICE_TABLE(of, ktd2692_match); | ||
429 | 430 | ||
430 | static struct platform_driver ktd2692_driver = { | 431 | static struct platform_driver ktd2692_driver = { |
431 | .driver = { | 432 | .driver = { |
diff --git a/drivers/leds/leds-max77693.c b/drivers/leds/leds-max77693.c index df348a06d8c7..afbb1409b2e2 100644 --- a/drivers/leds/leds-max77693.c +++ b/drivers/leds/leds-max77693.c | |||
@@ -1080,6 +1080,7 @@ static const struct of_device_id max77693_led_dt_match[] = { | |||
1080 | { .compatible = "maxim,max77693-led" }, | 1080 | { .compatible = "maxim,max77693-led" }, |
1081 | {}, | 1081 | {}, |
1082 | }; | 1082 | }; |
1083 | MODULE_DEVICE_TABLE(of, max77693_led_dt_match); | ||
1083 | 1084 | ||
1084 | static struct platform_driver max77693_led_driver = { | 1085 | static struct platform_driver max77693_led_driver = { |
1085 | .probe = max77693_led_probe, | 1086 | .probe = max77693_led_probe, |
diff --git a/drivers/leds/leds-ns2.c b/drivers/leds/leds-ns2.c index b33514d9f427..a95a61220169 100644 --- a/drivers/leds/leds-ns2.c +++ b/drivers/leds/leds-ns2.c | |||
@@ -337,6 +337,7 @@ static const struct of_device_id of_ns2_leds_match[] = { | |||
337 | { .compatible = "lacie,ns2-leds", }, | 337 | { .compatible = "lacie,ns2-leds", }, |
338 | {}, | 338 | {}, |
339 | }; | 339 | }; |
340 | MODULE_DEVICE_TABLE(of, of_ns2_leds_match); | ||
340 | #endif /* CONFIG_OF_GPIO */ | 341 | #endif /* CONFIG_OF_GPIO */ |
341 | 342 | ||
342 | struct ns2_led_priv { | 343 | struct ns2_led_priv { |