From: Mark Brown Date: Mon, 28 Nov 2011 18:48:14 +0000 (+0000) Subject: mfd: Constify WM8994 regulator_init_data X-Git-Tag: v3.12-rc1~3017^2~261^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43913e5ef9e9e05141418577523456e6b23777eb;p=kernel%2Fkernel-generic.git 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 Acked-by: Samuel Ortiz --- diff --git a/include/linux/mfd/wm8994/pdata.h b/include/linux/mfd/wm8994/pdata.h index 54e2fef..b00897a 100644 --- 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