projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add support for the jjPlus JA76PF2 board
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
leds
/
leds-wndr3700-usb.c
diff --git
a/target/linux/ar71xx/files/drivers/leds/leds-wndr3700-usb.c
b/target/linux/ar71xx/files/drivers/leds/leds-wndr3700-usb.c
index
9f17861
..
42f5b70
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/leds/leds-wndr3700-usb.c
+++ b/
target/linux/ar71xx/files/drivers/leds/leds-wndr3700-usb.c
@@
-12,7
+12,8
@@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/platform_device.h>
-#include <asm/mach-ar71xx/ar71xx.h>
+#include <asm/mach-ath79/ar71xx_regs.h>
+#include <asm/mach-ath79/ath79.h>
#define DRIVER_NAME "wndr3700-led-usb"
#define DRIVER_NAME "wndr3700-led-usb"
@@
-20,14
+21,14
@@
static void wndr3700_usb_led_set(struct led_classdev *cdev,
enum led_brightness brightness)
{
if (brightness)
enum led_brightness brightness)
{
if (brightness)
- a
r71xx_device_start(RESET_MODULE
_GE1_PHY);
+ a
th79_device_reset_clear(AR71XX_RESET
_GE1_PHY);
else
else
- a
r71xx_device_stop(RESET_MODULE
_GE1_PHY);
+ a
th79_device_reset_set(AR71XX_RESET
_GE1_PHY);
}
static enum led_brightness wndr3700_usb_led_get(struct led_classdev *cdev)
{
}
static enum led_brightness wndr3700_usb_led_get(struct led_classdev *cdev)
{
- return a
r71xx_device_stopped(RESET_MODULE
_GE1_PHY) ? LED_OFF : LED_FULL;
+ return a
th79_device_reset_get(AR71XX_RESET
_GE1_PHY) ? LED_OFF : LED_FULL;
}
static struct led_classdev wndr3700_usb_led = {
}
static struct led_classdev wndr3700_usb_led = {
This page took
0.036793 seconds
and
4
git commands to generate.