All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Julia Lawall <Julia.Lawall@lip6.fr>
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
Date: Sun, 03 Jan 2016 05:05:03 +0000	[thread overview]
Message-ID: <20160103050503.GE23680@dtor-ws> (raw)
In-Reply-To: <1451473879-10443-1-git-send-email-Julia.Lawall@lip6.fr>

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 <Julia.Lawall@lip6.fr>

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

WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Julia Lawall <Julia.Lawall@lip6.fr>
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
Date: Sat, 2 Jan 2016 21:05:03 -0800	[thread overview]
Message-ID: <20160103050503.GE23680@dtor-ws> (raw)
In-Reply-To: <1451473879-10443-1-git-send-email-Julia.Lawall@lip6.fr>

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 <Julia.Lawall@lip6.fr>

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

  reply	other threads:[~2016-01-03  5:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 11:11 [PATCH] Input: bma150 - constify bma150_cfg structure Julia Lawall
2015-12-30 11:11 ` Julia Lawall
2016-01-03  5:05 ` Dmitry Torokhov [this message]
2016-01-03  5:05   ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160103050503.GE23680@dtor-ws \
    --to=dmitry.torokhov@gmail.com \
    --cc=Julia.Lawall@lip6.fr \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.