OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dcb3c7
)
Input: bma150 - constify bma150_cfg structure
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sun, 3 Jan 2016 05:04:30 +0000
(21:04 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sun, 3 Jan 2016 05:08:52 +0000
(21:08 -0800)
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>
drivers/input/misc/bma150.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/bma150.c
b/drivers/input/misc/bma150.c
index
1d0e61d
..
b0d4453
100644
(file)
--- 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,