Skip to contentSkip to conversation

mfd: Constify WM8994 regulator_init_data

PATCH In review Mark Brown 2 participants 2 messages Nov 28, 2011 – Dec 18, 2011 Multifunction devices (MFD)

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

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.

---
 include/linux/mfd/wm8994/pdata.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mfd/wm8994/pdata.h +1 -1
index 54e2fef..b00897a 100644
@@ -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
#1 lore raw

Hi Mark,

Quoted 2 lines · Mark Brown

The driver has no need to modify the regulator_init_data so 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/