Linux Input/HID development
 help / color / mirror / Atom feed
From: Paul Parsons <lost.distance@yahoo.com>
To: linux-input@vger.kernel.org, Philipp Zabel <pzabel@gmx.de>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: [PATCH] Input: navpoint: add clk_prepare/clk_unprepare calls
Date: Fri, 16 Mar 2012 15:57:11 +0000 (GMT)	[thread overview]
Message-ID: <1331913431.1816.YahooMailClassic@web29020.mail.ird.yahoo.com> (raw)
In-Reply-To: <1331834978.14662.1.camel@flow>

--- On Thu, 15/3/12, Philipp Zabel <pzabel@gmx.de> wrote:
> This patch adds
> clk_prepare/clk_unprepare calls to the navpoint
> driver by using the helper functions clk_prepare_enable and
> clk_disable_unprepare.
> 
> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Cc: Paul Parsons <lost.distance@yahoo.com>
> ---
>  drivers/input/mouse/navpoint.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/input/mouse/navpoint.c
> b/drivers/input/mouse/navpoint.c
> index 253ec18..cb0d3b1 100644
> --- a/drivers/input/mouse/navpoint.c
> +++ b/drivers/input/mouse/navpoint.c
> @@ -225,7 +225,7 @@ static int navpoint_suspend(struct
> device *dev)
>  
>      pxa_ssp_write_reg(ssp, SSCR0, 0);
>  
> -    clk_disable(ssp->clk);
> +    clk_disable_unprepare(ssp->clk);
>  
>      return 0;
>  }
> @@ -236,7 +236,7 @@ static int navpoint_resume(struct device
> *dev)
>      struct ssp_device *ssp =
> drv_data->ssp;
>      int timeout;
>  
> -    clk_enable(ssp->clk);
> +    clk_prepare_enable(ssp->clk);
>  
>      pxa_ssp_write_reg(ssp, SSCR1, sscr1);
>      pxa_ssp_write_reg(ssp, SSSR, sssr);
> -- 
> 1.7.9.1

AFAIK the navpoint driver itself has yet to be accepted.

Acked-by: Paul Parsons <lost.distance@yahoo.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2012-03-16 16:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15 18:09 [PATCH] Input: navpoint: add clk_prepare/clk_unprepare calls Philipp Zabel
2012-03-16 15:57 ` Paul Parsons [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=1331913431.1816.YahooMailClassic@web29020.mail.ird.yahoo.com \
    --to=lost.distance@yahoo.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=pzabel@gmx.de \
    /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