From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751345AbcACFFK (ORCPT ); Sun, 3 Jan 2016 00:05:10 -0500 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33366 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750758AbcACFFH (ORCPT ); Sun, 3 Jan 2016 00:05:07 -0500 Date: Sat, 2 Jan 2016 21:05:03 -0800 From: Dmitry Torokhov To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: bma150 - constify bma150_cfg structure Message-ID: <20160103050503.GE23680@dtor-ws> References: <1451473879-10443-1-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1451473879-10443-1-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Applied, thank you. > > --- > 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