aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/samsung/pinctrl-samsung.h
diff options
context:
space:
mode:
authorTomasz Figa <tomasz.figa@gmail.com>2014-09-23 15:05:39 -0400
committerTomasz Figa <tomasz.figa@gmail.com>2014-11-09 07:10:28 -0500
commit94ce944bed8a849a9b83b4e66f0e6e4abc16c457 (patch)
tree0cdde9576b2e8553207277fa7f6562caf176396d /drivers/pinctrl/samsung/pinctrl-samsung.h
parente06deff967d29beffceeaffc4cdc90aacbd34898 (diff)
pinctrl: samsung: Constify samsung_pin_bank_type struct
This structure is not intended to be modified at runtime and functions as constant data shared between multiple pin banks. This patch makes all instances of it constant across the driver. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Diffstat (limited to 'drivers/pinctrl/samsung/pinctrl-samsung.h')
-rw-r--r--drivers/pinctrl/samsung/pinctrl-samsung.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.h b/drivers/pinctrl/samsung/pinctrl-samsung.h
index da527b390513..c67738597d2a 100644
--- a/drivers/pinctrl/samsung/pinctrl-samsung.h
+++ b/drivers/pinctrl/samsung/pinctrl-samsung.h
@@ -131,7 +131,7 @@ struct samsung_pin_bank_type {
131 * @pm_save: saved register values during suspend 131 * @pm_save: saved register values during suspend
132 */ 132 */
133struct samsung_pin_bank { 133struct samsung_pin_bank {
134 struct samsung_pin_bank_type *type; 134 const struct samsung_pin_bank_type *type;
135 u32 pctl_offset; 135 u32 pctl_offset;
136 u32 pin_base; 136 u32 pin_base;
137 u8 nr_pins; 137 u8 nr_pins;