Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Julia Lawall and committed by
Dmitry Torokhov
7ed5ff82 8dcb3c76

+1 -1
+1 -1
drivers/input/misc/bma150.c
··· 147 147 * are stated and verified by Bosch Sensortec where they are configured 148 148 * to provide a generic sensitivity performance. 149 149 */ 150 - static struct bma150_cfg default_cfg = { 150 + static const struct bma150_cfg default_cfg = { 151 151 .any_motion_int = 1, 152 152 .hg_int = 1, 153 153 .lg_int = 1,