Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f3b6b6cd00d294d50e1c3eee85964c69d898de45
Commit:     f3b6b6cd00d294d50e1c3eee85964c69d898de45
Parent:     bbf25010f1a6b761914430f5fca081ec8c7accd1
Author:     Yoichi Yuasa <[EMAIL PROTECTED]>
AuthorDate: Fri Sep 21 00:02:47 2007 +0100
Committer:  Richard Purdie <[EMAIL PROTECTED]>
CommitDate: Thu Oct 11 22:24:00 2007 +0100

    leds: Rename leds-cobalt driver
    
    The leds-cobalt driver only supports the Coable Qube series
    (not included in Cobalt Raq series).
    Rename the driver and update Kconfig/Makefile.
    
    Signed-off-by: Yoichi Yuasa <[EMAIL PROTECTED]>
    Acked-by: Florian Fainelli <[EMAIL PROTECTED]>
    Signed-off-by: Richard Purdie <[EMAIL PROTECTED]>
---
 drivers/leds/Kconfig            |    6 ++--
 drivers/leds/Makefile           |    2 +-
 drivers/leds/leds-cobalt-qube.c |   43 +++++++++++++++++++++++++++++++++++++++
 drivers/leds/leds-cobalt.c      |   43 ---------------------------------------
 4 files changed, 47 insertions(+), 47 deletions(-)

diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 4468cb3..9b79bcd 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -87,11 +87,11 @@ config LEDS_H1940
        help
          This option enables support for the LEDs on the h1940.
 
-config LEDS_COBALT
-       tristate "LED Support for Cobalt Server front LED"
+config LEDS_COBALT_QUBE
+       tristate "LED Support for the Cobalt Qube series front LED"
        depends on LEDS_CLASS && MIPS_COBALT
        help
-         This option enables support for the front LED on Cobalt Server
+         This option enables support for the front LED on Cobalt Qube series
 
 config LEDS_GPIO
        tristate "LED Support for GPIO connected LEDs"
diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile
index f8995c9..9b2684a 100644
--- a/drivers/leds/Makefile
+++ b/drivers/leds/Makefile
@@ -15,7 +15,7 @@ obj-$(CONFIG_LEDS_AMS_DELTA)          += leds-ams-delta.o
 obj-$(CONFIG_LEDS_NET48XX)             += leds-net48xx.o
 obj-$(CONFIG_LEDS_WRAP)                        += leds-wrap.o
 obj-$(CONFIG_LEDS_H1940)               += leds-h1940.o
-obj-$(CONFIG_LEDS_COBALT)              += leds-cobalt.o
+obj-$(CONFIG_LEDS_COBALT_QUBE)         += leds-cobalt-qube.o
 obj-$(CONFIG_LEDS_GPIO)                        += leds-gpio.o
 
 # LED Triggers
diff --git a/drivers/leds/leds-cobalt-qube.c b/drivers/leds/leds-cobalt-qube.c
new file mode 100644
index 0000000..d16439c
--- /dev/null
+++ b/drivers/leds/leds-cobalt-qube.c
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2006 - Florian Fainelli <[EMAIL PROTECTED]>
+ *
+ * Control the Cobalt Qube/RaQ front LED
+ */
+
+#include <linux/module.h>
+#include <linux/types.h>
+#include <linux/kernel.h>
+#include <linux/device.h>
+#include <linux/leds.h>
+#include <asm/mach-cobalt/cobalt.h>
+
+static void cobalt_led_set(struct led_classdev *led_cdev, enum led_brightness 
brightness)
+{
+       if (brightness)
+               COBALT_LED_PORT = COBALT_LED_BAR_LEFT | COBALT_LED_BAR_RIGHT;
+       else
+               COBALT_LED_PORT = 0;
+}
+
+static struct led_classdev cobalt_led = {
+       .name = "cobalt-front-led",
+       .brightness_set = cobalt_led_set,
+       .default_trigger = "ide-disk",
+};
+
+static int __init cobalt_led_init(void)
+{
+       return led_classdev_register(NULL, &cobalt_led);
+}
+
+static void __exit cobalt_led_exit(void)
+{
+       led_classdev_unregister(&cobalt_led);
+}
+
+module_init(cobalt_led_init);
+module_exit(cobalt_led_exit);
+
+MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("Front LED support for Cobalt Server");
+MODULE_AUTHOR("Florian Fainelli <[EMAIL PROTECTED]>");
diff --git a/drivers/leds/leds-cobalt.c b/drivers/leds/leds-cobalt.c
deleted file mode 100644
index d16439c..0000000
--- a/drivers/leds/leds-cobalt.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2006 - Florian Fainelli <[EMAIL PROTECTED]>
- *
- * Control the Cobalt Qube/RaQ front LED
- */
-
-#include <linux/module.h>
-#include <linux/types.h>
-#include <linux/kernel.h>
-#include <linux/device.h>
-#include <linux/leds.h>
-#include <asm/mach-cobalt/cobalt.h>
-
-static void cobalt_led_set(struct led_classdev *led_cdev, enum led_brightness 
brightness)
-{
-       if (brightness)
-               COBALT_LED_PORT = COBALT_LED_BAR_LEFT | COBALT_LED_BAR_RIGHT;
-       else
-               COBALT_LED_PORT = 0;
-}
-
-static struct led_classdev cobalt_led = {
-       .name = "cobalt-front-led",
-       .brightness_set = cobalt_led_set,
-       .default_trigger = "ide-disk",
-};
-
-static int __init cobalt_led_init(void)
-{
-       return led_classdev_register(NULL, &cobalt_led);
-}
-
-static void __exit cobalt_led_exit(void)
-{
-       led_classdev_unregister(&cobalt_led);
-}
-
-module_init(cobalt_led_init);
-module_exit(cobalt_led_exit);
-
-MODULE_LICENSE("GPL");
-MODULE_DESCRIPTION("Front LED support for Cobalt Server");
-MODULE_AUTHOR("Florian Fainelli <[EMAIL PROTECTED]>");
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to