diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2014-09-23 21:05:39 +0200 |
---|---|---|
committer | Tomasz Figa <tomasz.figa@gmail.com> | 2014-11-09 21:10:28 +0900 |
commit | 94ce944bed8a849a9b83b4e66f0e6e4abc16c457 (patch) | |
tree | 0cdde9576b2e8553207277fa7f6562caf176396d /drivers/pinctrl/samsung/pinctrl-samsung.h | |
parent | e06deff967d29beffceeaffc4cdc90aacbd34898 (diff) | |
download | linux-94ce944bed8a849a9b83b4e66f0e6e4abc16c457.tar.bz2 |
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.h | 2 |
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 { * @pm_save: saved register values during suspend */ struct samsung_pin_bank { - struct samsung_pin_bank_type *type; + const struct samsung_pin_bank_type *type; u32 pctl_offset; u32 pin_base; u8 nr_pins; |