diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-07-04 21:36:43 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-08-05 10:07:41 +0300 |
commit | d801403c3324ecb8b79e1840f87cce01c4926cdc (patch) | |
tree | 91ea3bda260262f6693253e14ff2e0bb2891cee1 /drivers/pinctrl/ti | |
parent | d21fe1e9a6a44e752e227d3a43f41aed790dad95 (diff) | |
download | linux-d801403c3324ecb8b79e1840f87cce01c4926cdc.tar.xz |
pinctrl: ti-iodelay: Constify struct regmap_config
`dra7_iodelay_regmap_config` is not modified and can be declared as
const to move its data to a read-only section.
The pointer used to reference that struct has been made const
accordingly.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/20240704-pinctrl-const-regmap_config-v1-1-9d5570f0b9f3@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/ti')
-rw-r--r-- | drivers/pinctrl/ti/pinctrl-ti-iodelay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c index f5e5a23d2226..1d855a5dbc94 100644 --- a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c +++ b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c @@ -82,7 +82,7 @@ struct ti_iodelay_reg_data { u32 reg_start_offset; u32 reg_nr_per_pin; - struct regmap_config *regmap_config; + const struct regmap_config *regmap_config; }; /** @@ -770,7 +770,7 @@ static int ti_iodelay_alloc_pins(struct device *dev, return 0; } -static struct regmap_config dra7_iodelay_regmap_config = { +static const struct regmap_config dra7_iodelay_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, |