diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2014-01-27 05:23:54 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-02-10 04:13:08 -0500 |
commit | 1e6f8e3c92fbbcd5bcca860c4db4eef2052aa79f (patch) | |
tree | f761859d11a0299f1fb2ec1bf097e3a587eb738d /drivers/pinctrl/pinctrl-adi2.c | |
parent | 94e692071a51594c5117055676fef3ecbab21b30 (diff) |
pinctrl: Move pint PM storage structure out of blackfin architecture.
It is better to keep this structure in the pinctrl-adi2 driver.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-adi2.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-adi2.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c index 7a39562c3e42..e8120fadf385 100644 --- a/drivers/pinctrl/pinctrl-adi2.c +++ b/drivers/pinctrl/pinctrl-adi2.c | |||
@@ -89,6 +89,19 @@ struct gpio_port_saved { | |||
89 | u32 mux; | 89 | u32 mux; |
90 | }; | 90 | }; |
91 | 91 | ||
92 | /* | ||
93 | * struct gpio_pint_saved - PINT registers saved in PM operations | ||
94 | * | ||
95 | * @assign: ASSIGN register | ||
96 | * @edge_set: EDGE_SET register | ||
97 | * @invert_set: INVERT_SET register | ||
98 | */ | ||
99 | struct gpio_pint_saved { | ||
100 | u32 assign; | ||
101 | u32 edge_set; | ||
102 | u32 invert_set; | ||
103 | }; | ||
104 | |||
92 | /** | 105 | /** |
93 | * struct gpio_pint - Pin interrupt controller device. Multiple ADI GPIO | 106 | * struct gpio_pint - Pin interrupt controller device. Multiple ADI GPIO |
94 | * banks can be mapped into one Pin interrupt controller. | 107 | * banks can be mapped into one Pin interrupt controller. |
@@ -114,7 +127,7 @@ struct gpio_pint { | |||
114 | int irq; | 127 | int irq; |
115 | struct irq_domain *domain[2]; | 128 | struct irq_domain *domain[2]; |
116 | struct gpio_pint_regs *regs; | 129 | struct gpio_pint_regs *regs; |
117 | struct adi_pm_pint_save saved_data; | 130 | struct gpio_pint_saved saved_data; |
118 | int map_count; | 131 | int map_count; |
119 | spinlock_t lock; | 132 | spinlock_t lock; |
120 | 133 | ||