summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorJulia Lawall2016-01-03 06:04:30 +0100
committerDmitry Torokhov2016-01-03 06:08:52 +0100
commit7ed5ff82c2f06965652f8d1a17c427ba8d363b92 (patch)
treefc8544908645db236bfaafde4547af59523de4c6 /drivers/input
parentInput: egalax_ts_serial - fix potential NULL dereference on error (diff)
downloadkernel-qcow2-linux-7ed5ff82c2f06965652f8d1a17c427ba8d363b92.tar.gz
kernel-qcow2-linux-7ed5ff82c2f06965652f8d1a17c427ba8d363b92.tar.xz
kernel-qcow2-linux-7ed5ff82c2f06965652f8d1a17c427ba8d363b92.zip
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')
-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,