From: Julia Lawall Date: Sun, 3 Jan 2016 05:04:30 +0000 (-0800) Subject: Input: bma150 - constify bma150_cfg structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ed5ff82c2f06965652f8d1a17c427ba8d363b92;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: bma150 - constify bma150_cfg structure The bma150_cfg structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/bma150.c b/drivers/input/misc/bma150.c index 1d0e61d7c131..b0d445390ee4 100644 --- a/drivers/input/misc/bma150.c +++ b/drivers/input/misc/bma150.c @@ -147,7 +147,7 @@ struct bma150_data { * are stated and verified by Bosch Sensortec where they are configured * to provide a generic sensitivity performance. */ -static struct bma150_cfg default_cfg = { +static const struct bma150_cfg default_cfg = { .any_motion_int = 1, .hg_int = 1, .lg_int = 1,