Thread (2 messages) 2 messages, 2 authors, 2016-01-03

Re: [PATCH] Input: bma150 - constify bma150_cfg structure

flat view

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2016-01-03 05:05:10
Also in: kernel-janitors, lkml

On Wed, Dec 30, 2015 at 12:11:19PM +0100, Julia Lawall wrote:
The bma150_cfg structure is never modified, so declare it as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <redacted>
Applied, thank you.
quoted hunk ↗ jump to hunk

---
 drivers/input/misc/bma150.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/misc/bma150.c b/drivers/input/misc/bma150.c
index 1d0e61d..b0d4453 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,
-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help