浏览代码

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>
Julia Lawall 9 年之前
父节点
当前提交
7ed5ff82c2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/misc/bma150.c

+ 1 - 1
drivers/input/misc/bma150.c

@@ -147,7 +147,7 @@ struct bma150_data {
  * are stated and verified by Bosch Sensortec where they are configured
  * are stated and verified by Bosch Sensortec where they are configured
  * to provide a generic sensitivity performance.
  * to provide a generic sensitivity performance.
  */
  */
-static struct bma150_cfg default_cfg = {
+static const struct bma150_cfg default_cfg = {
 	.any_motion_int = 1,
 	.any_motion_int = 1,
 	.hg_int = 1,
 	.hg_int = 1,
 	.lg_int = 1,
 	.lg_int = 1,