public inbox for linux-input@vger.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Nick Dyer <nick.dyer@itdev.co.uk>
Cc: linux-input@vger.kernel.org, Chris Healy <cphealy@gmail.com>,
	Andrew Duggan <aduggan@synaptics.com>
Subject: Re: [PATCH] Input: synaptics-rmi4 - fix spelling in defines
Date: Thu, 19 May 2016 09:32:48 -0700	[thread overview]
Message-ID: <20160519163248.GC38800@dtor-ws> (raw)
In-Reply-To: <1463646466-893-1-git-send-email-nick.dyer@itdev.co.uk>

On Thu, May 19, 2016 at 09:27:46AM +0100, Nick Dyer wrote:
> Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
> Reviewed-by: Andrew Duggan <aduggan@synaptics.com>

Applied, thank you.

> ---
>  drivers/input/rmi4/rmi_f01.c | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/input/rmi4/rmi_f01.c b/drivers/input/rmi4/rmi_f01.c
> index eb362bc..fac81fc 100644
> --- a/drivers/input/rmi4/rmi_f01.c
> +++ b/drivers/input/rmi4/rmi_f01.c
> @@ -81,26 +81,26 @@ struct f01_basic_properties {
>   * This bit disables whatever sleep mode may be selected by the sleep_mode
>   * field and forces the device to run at full power without sleeping.
>   */
> -#define RMI_F01_CRTL0_NOSLEEP_BIT	BIT(2)
> +#define RMI_F01_CTRL0_NOSLEEP_BIT	BIT(2)
>  
>  /*
>   * When this bit is set, the touch controller employs a noise-filtering
>   * algorithm designed for use with a connected battery charger.
>   */
> -#define RMI_F01_CRTL0_CHARGER_BIT	BIT(5)
> +#define RMI_F01_CTRL0_CHARGER_BIT	BIT(5)
>  
>  /*
>   * Sets the report rate for the device. The effect of this setting is
>   * highly product dependent. Check the spec sheet for your particular
>   * touch sensor.
>   */
> -#define RMI_F01_CRTL0_REPORTRATE_BIT	BIT(6)
> +#define RMI_F01_CTRL0_REPORTRATE_BIT	BIT(6)
>  
>  /*
>   * Written by the host as an indicator that the device has been
>   * successfully configured.
>   */
> -#define RMI_F01_CRTL0_CONFIGURED_BIT	BIT(7)
> +#define RMI_F01_CTRL0_CONFIGURED_BIT	BIT(7)
>  
>  /**
>   * @ctrl0 - see the bit definitions above.
> @@ -330,10 +330,10 @@ static int rmi_f01_probe(struct rmi_function *fn)
>  	case RMI_F01_NOSLEEP_DEFAULT:
>  		break;
>  	case RMI_F01_NOSLEEP_OFF:
> -		f01->device_control.ctrl0 &= ~RMI_F01_CRTL0_NOSLEEP_BIT;
> +		f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_NOSLEEP_BIT;
>  		break;
>  	case RMI_F01_NOSLEEP_ON:
> -		f01->device_control.ctrl0 |= RMI_F01_CRTL0_NOSLEEP_BIT;
> +		f01->device_control.ctrl0 |= RMI_F01_CTRL0_NOSLEEP_BIT;
>  		break;
>  	}
>  
> @@ -349,7 +349,7 @@ static int rmi_f01_probe(struct rmi_function *fn)
>  		f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_SLEEP_MODE_MASK;
>  	}
>  
> -	f01->device_control.ctrl0 |= RMI_F01_CRTL0_CONFIGURED_BIT;
> +	f01->device_control.ctrl0 |= RMI_F01_CTRL0_CONFIGURED_BIT;
>  
>  	error = rmi_write(rmi_dev, fn->fd.control_base_addr,
>  			  f01->device_control.ctrl0);
> @@ -535,8 +535,8 @@ static int rmi_f01_suspend(struct rmi_function *fn)
>  	int error;
>  
>  	f01->old_nosleep =
> -		f01->device_control.ctrl0 & RMI_F01_CRTL0_NOSLEEP_BIT;
> -	f01->device_control.ctrl0 &= ~RMI_F01_CRTL0_NOSLEEP_BIT;
> +		f01->device_control.ctrl0 & RMI_F01_CTRL0_NOSLEEP_BIT;
> +	f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_NOSLEEP_BIT;
>  
>  	f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_SLEEP_MODE_MASK;
>  	if (device_may_wakeup(fn->rmi_dev->xport->dev))
> @@ -549,7 +549,7 @@ static int rmi_f01_suspend(struct rmi_function *fn)
>  	if (error) {
>  		dev_err(&fn->dev, "Failed to write sleep mode: %d.\n", error);
>  		if (f01->old_nosleep)
> -			f01->device_control.ctrl0 |= RMI_F01_CRTL0_NOSLEEP_BIT;
> +			f01->device_control.ctrl0 |= RMI_F01_CTRL0_NOSLEEP_BIT;
>  		f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_SLEEP_MODE_MASK;
>  		f01->device_control.ctrl0 |= RMI_SLEEP_MODE_NORMAL;
>  		return error;
> @@ -564,7 +564,7 @@ static int rmi_f01_resume(struct rmi_function *fn)
>  	int error;
>  
>  	if (f01->old_nosleep)
> -		f01->device_control.ctrl0 |= RMI_F01_CRTL0_NOSLEEP_BIT;
> +		f01->device_control.ctrl0 |= RMI_F01_CTRL0_NOSLEEP_BIT;
>  
>  	f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_SLEEP_MODE_MASK;
>  	f01->device_control.ctrl0 |= RMI_SLEEP_MODE_NORMAL;
> -- 
> 2.5.0
> 

-- 
Dmitry

      reply	other threads:[~2016-05-19 16:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19  8:27 [PATCH] Input: synaptics-rmi4 - fix spelling in defines Nick Dyer
2016-05-19 16:32 ` Dmitry Torokhov [this message]

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=20160519163248.GC38800@dtor-ws \
    --to=dmitry.torokhov@gmail.com \
    --cc=aduggan@synaptics.com \
    --cc=cphealy@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=nick.dyer@itdev.co.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox