projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97e43c9
)
mfd: Constify WM8994 regulator_init_data
author
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 28 Nov 2011 23:26:47 +0000
(23:26 +0000)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Sun, 8 Jan 2012 23:37:35 +0000
(
00:37
+0100)
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 <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/linux/mfd/wm8994/pdata.h
patch
|
blob
|
history
diff --git
a/include/linux/mfd/wm8994/pdata.h
b/include/linux/mfd/wm8994/pdata.h
index 54e2fef587d58f6a542dd33739aa8fcf87a6eb77..b00897a6c461978f1c075d317f48f8325659728b 100644
(file)
--- a/
include/linux/mfd/wm8994/pdata.h
+++ b/
include/linux/mfd/wm8994/pdata.h
@@
-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