aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:21 +0000
commit4a3bd49cf111ff93acb064797c48fd630cfcdc73 (patch)
tree3e84af65d4324fbbd97c52240f0991f89e2b4d90 /target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
parent9ceee12a49b0c7f1652235f581f19187a01611e3 (diff)
downloadupstream-4a3bd49cf111ff93acb064797c48fd630cfcdc73.tar.gz
upstream-4a3bd49cf111ff93acb064797c48fd630cfcdc73.tar.bz2
upstream-4a3bd49cf111ff93acb064797c48fd630cfcdc73.zip
atheros: v3.18: update register names
Make register names more consistent, mostly add appropriate prefix (AR5312_ or AR2315_) or _BASE suffix. Also add macro to simplify mask and shift operation. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44726
Diffstat (limited to 'target/linux/atheros/patches-3.18/102-ar5312_gpio.patch')
-rw-r--r--target/linux/atheros/patches-3.18/102-ar5312_gpio.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch b/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
index 7056aebe85..9283616b01 100644
--- a/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
+++ b/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
@@ -19,7 +19,7 @@
+ .name = "ar5312-gpio",
+ .flags = IORESOURCE_MEM,
+ .start = AR5312_GPIO_BASE,
-+ .end = AR5312_GPIO_BASE + 0x0c - 1,
++ .end = AR5312_GPIO_BASE + AR5312_GPIO_SIZE - 1,
+ },
+};
+
@@ -33,7 +33,7 @@
#ifdef CONFIG_LEDS_GPIO
static struct gpio_led ar5312_leds[] = {
{ .name = "wlan", .gpio = 0, .active_low = 1, },
-@@ -294,6 +310,8 @@ void __init ar5312_init_devices(void)
+@@ -290,6 +306,8 @@ void __init ar5312_init_devices(void)
platform_device_register(&ar5312_physmap_flash);