summaryrefslogtreecommitdiff
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-01-03 08:04:30 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-01-03 08:08:52 +0300
commit7ed5ff82c2f06965652f8d1a17c427ba8d363b92 (patch)
treefc8544908645db236bfaafde4547af59523de4c6 /drivers/input/misc
parent8dcb3c7628f19192dd568fbee9094a2d4b14b6af (diff)
downloadlinux-7ed5ff82c2f06965652f8d1a17c427ba8d363b92.tar.xz
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 <Julia.Lawall@lip6.fr> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/bma150.c2
1 files changed, 1 insertions, 1 deletions
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,