mfd: Constify WM8994 regulator_init_data
PATCH 1/1 mfd: Constify WM8994 regulator_init_data
The driver has no need to modify the regulator_init_data so declare it const to allow machine code to do so.
Signed-off-by Mark Brown <[email protected]>
--- include/linux/mfd/wm8994/pdata.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mfd/wm8994/pdata.h +1 -1
@@ -23,7 +23,7 @@ struct wm8994_ldo_pdata {int enable;const char *supply; -struct regulator_init_data *init_data; +const struct regulator_init_data *init_data; };#define WM8994_CONFIGURE_GPIO 0x10000
Signature · 1 line
1.7.7.3
Hi Mark,
Quoted 2 lines · Mark Brown
The driver has no need to modify the
regulator_init_dataso declare it const to allow machine code to do so.
Patch applied, thanks.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/