diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-06-27 18:22:38 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-06-27 18:22:38 +0000 |
commit | 6a0c74d7b9640f237a2e338f4284aa87871c7b6c (patch) | |
tree | 2abf896e08c7b6ed94328e5b72b06f478b545f42 /target/linux/adm5120-2.6/files/drivers/char | |
parent | bb2c2a81dd4fdf9dd77b68c329e694be5b11998e (diff) | |
download | mtk-20170518-6a0c74d7b9640f237a2e338f4284aa87871c7b6c.zip mtk-20170518-6a0c74d7b9640f237a2e338f4284aa87871c7b6c.tar.gz mtk-20170518-6a0c74d7b9640f237a2e338f4284aa87871c7b6c.tar.bz2 |
replace led driver, and resync kernel config
SVN-Revision: 7744
Diffstat (limited to 'target/linux/adm5120-2.6/files/drivers/char')
-rw-r--r-- | target/linux/adm5120-2.6/files/drivers/char/adm5120_gpio.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/char/adm5120_gpio.c b/target/linux/adm5120-2.6/files/drivers/char/adm5120_gpio.c deleted file mode 100644 index 090c53a..0000000 --- a/target/linux/adm5120-2.6/files/drivers/char/adm5120_gpio.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * ADM5120 LED (GPIO) driver - * - * Copyright (C) Jeroen Vreeken (pe1rxq@amsat.org), 2005 - * Copyright (C) OpenWrt.org, Florian Fainelli <florian@openwrt.org>, 2007 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#include <linux/kernel.h> -#include <linux/init.h> -#include <linux/platform_device.h> -#include <linux/leds.h> - -#define GPIO_IO ((unsigned long *)0xb20000b8) - -static void adm5120_led_set(struct led_classdev *led_cdev, enum led_brightness brightness) -{ - if (brightness) - *GPIO_IO=(*GPIO_IO & 0x00ffffff) | (brightness << 24); - else - *GPIO_IO=(*GPIO_IO & 0x00ffffff) | (0 << 24); -} - -static struct led_classdev adm5120_gpio_led = { - .name = "adm5120:led", - .brightness_set = adm5120_led_set, -}; - -static int __init adm5120_led_init(void) -{ - int ret = led_classdev_register(NULL, &adm5120_gpio_led); - - if (ret < 0) - printk(KERN_WARNING "adm5120: unable to register LED device\n"); - - return ret; -} - -static void __exit adm5120_led_exit(void) -{ - led_classdev_unregister(&adm5120_gpio_led); -} - -module_init(adm5120_led_init); -module_exit(adm5120_led_exit); - -MODULE_DESCRIPTION("ADM5120 LED driver"); -MODULE_AUTHOR("Jeroen Vreeken, OpenWrt.org"); -MODULE_LICENSE("GPL"); |