diff options
Diffstat (limited to 'drivers/pinctrl/sh-pfc/sh_pfc.h')
-rw-r--r-- | drivers/pinctrl/sh-pfc/sh_pfc.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h index 19da3b7c57f1..b250dacaf8dd 100644 --- a/drivers/pinctrl/sh-pfc/sh_pfc.h +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h | |||
@@ -84,8 +84,8 @@ struct pinmux_func { | |||
84 | 84 | ||
85 | struct pinmux_cfg_reg { | 85 | struct pinmux_cfg_reg { |
86 | unsigned long reg, reg_width, field_width; | 86 | unsigned long reg, reg_width, field_width; |
87 | pinmux_enum_t *enum_ids; | 87 | const pinmux_enum_t *enum_ids; |
88 | unsigned long *var_field_width; | 88 | const unsigned long *var_field_width; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | #define PINMUX_CFG_REG(name, r, r_width, f_width) \ | 91 | #define PINMUX_CFG_REG(name, r, r_width, f_width) \ |
@@ -99,7 +99,7 @@ struct pinmux_cfg_reg { | |||
99 | 99 | ||
100 | struct pinmux_data_reg { | 100 | struct pinmux_data_reg { |
101 | unsigned long reg, reg_width; | 101 | unsigned long reg, reg_width; |
102 | pinmux_enum_t *enum_ids; | 102 | const pinmux_enum_t *enum_ids; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | #define PINMUX_DATA_REG(name, r, r_width) \ | 105 | #define PINMUX_DATA_REG(name, r, r_width) \ |
@@ -121,14 +121,14 @@ struct pinmux_range { | |||
121 | }; | 121 | }; |
122 | 122 | ||
123 | struct sh_pfc_soc_info { | 123 | struct sh_pfc_soc_info { |
124 | char *name; | 124 | const char *name; |
125 | struct pinmux_range input; | 125 | struct pinmux_range input; |
126 | struct pinmux_range input_pd; | 126 | struct pinmux_range input_pd; |
127 | struct pinmux_range input_pu; | 127 | struct pinmux_range input_pu; |
128 | struct pinmux_range output; | 128 | struct pinmux_range output; |
129 | struct pinmux_range function; | 129 | struct pinmux_range function; |
130 | 130 | ||
131 | struct sh_pfc_pin *pins; | 131 | const struct sh_pfc_pin *pins; |
132 | unsigned int nr_pins; | 132 | unsigned int nr_pins; |
133 | const struct pinmux_range *ranges; | 133 | const struct pinmux_range *ranges; |
134 | unsigned int nr_ranges; | 134 | unsigned int nr_ranges; |
@@ -137,16 +137,16 @@ struct sh_pfc_soc_info { | |||
137 | const struct sh_pfc_function *functions; | 137 | const struct sh_pfc_function *functions; |
138 | unsigned int nr_functions; | 138 | unsigned int nr_functions; |
139 | 139 | ||
140 | struct pinmux_func *func_gpios; | 140 | const struct pinmux_func *func_gpios; |
141 | unsigned int nr_func_gpios; | 141 | unsigned int nr_func_gpios; |
142 | 142 | ||
143 | struct pinmux_cfg_reg *cfg_regs; | 143 | const struct pinmux_cfg_reg *cfg_regs; |
144 | struct pinmux_data_reg *data_regs; | 144 | const struct pinmux_data_reg *data_regs; |
145 | 145 | ||
146 | pinmux_enum_t *gpio_data; | 146 | const pinmux_enum_t *gpio_data; |
147 | unsigned int gpio_data_size; | 147 | unsigned int gpio_data_size; |
148 | 148 | ||
149 | struct pinmux_irq *gpio_irq; | 149 | const struct pinmux_irq *gpio_irq; |
150 | unsigned int gpio_irq_size; | 150 | unsigned int gpio_irq_size; |
151 | 151 | ||
152 | unsigned long unlock_reg; | 152 | unsigned long unlock_reg; |