diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-19 15:57:01 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-03-19 15:57:01 +0000 |
commit | 5348f46c8042dd9f5e94d63c48d94ffef38c8a7c (patch) | |
tree | 96376db569b3c5379ed068d3478108ca6d6254b4 /target/linux/ar71xx/files/arch/mips | |
parent | 8a471efe012d23a9292b4f951e6d09717595faa3 (diff) | |
download | mtk-20170518-5348f46c8042dd9f5e94d63c48d94ffef38c8a7c.zip mtk-20170518-5348f46c8042dd9f5e94d63c48d94ffef38c8a7c.tar.gz mtk-20170518-5348f46c8042dd9f5e94d63c48d94ffef38c8a7c.tar.bz2 |
ar71xx: add latch_change field to rb750_led_platform_data
SVN-Revision: 31023
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c | 9 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/mach-rb750.h | 1 |
2 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c index bcd961e..4ef1b10 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c @@ -47,11 +47,7 @@ static struct rb750_led_data rb750_leds[] = { } }; -static struct rb750_led_platform_data rb750_leds_data = { - .num_leds = ARRAY_SIZE(rb750_leds), - .leds = rb750_leds, -}; - +static struct rb750_led_platform_data rb750_leds_data; static struct platform_device rb750_leds_device = { .name = "leds-rb750", .dev = { @@ -155,6 +151,9 @@ static void __init rb750_setup(void) /* WAN port */ ath79_register_eth(0); + rb750_leds_data.num_leds = ARRAY_SIZE(rb750_leds); + rb750_leds_data.leds = rb750_leds; + rb750_leds_data.latch_change = rb750_nand_latch_change; platform_device_register(&rb750_leds_device); rb750_nand_data.nce_line = RB750_NAND_NCE; diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/mach-rb750.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/mach-rb750.h index 9509fca..19d7a12 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/mach-rb750.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/mach-rb750.h @@ -60,6 +60,7 @@ struct rb750_led_data { struct rb750_led_platform_data { int num_leds; struct rb750_led_data *leds; + void (*latch_change)(u32 clear, u32 set); }; struct rb7xx_nand_platform_data { |