All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Dooks <ben-i2c-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>
To: Nobuhiro Iwamatsu <iwamatsu-+mkmVskJBflAfugRpC6u6w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] sh: i2c-sh7760: Replase from ctrl_* to __raw_*
Date: Mon, 25 Oct 2010 02:30:29 +0100	[thread overview]
Message-ID: <20101025013029.GE21564@trinity.fluff.org> (raw)
In-Reply-To: <1287909466-16898-1-git-send-email-iwamatsu-+mkmVskJBflAfugRpC6u6w@public.gmane.org>

On Sun, Oct 24, 2010 at 05:37:46PM +0900, Nobuhiro Iwamatsu wrote:
> ctrl_* is deprecated. We should to use __raw_*.

Given iobase is ioremap() returned, there should be an explicit reason
for using __raw_xxx() instead of read/writel().
 
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu-+mkmVskJBflAfugRpC6u6w@public.gmane.org>
> ---
>  drivers/i2c/busses/i2c-sh7760.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-sh7760.c b/drivers/i2c/busses/i2c-sh7760.c
> index 4f93da3..3cad8fe 100644
> --- a/drivers/i2c/busses/i2c-sh7760.c
> +++ b/drivers/i2c/busses/i2c-sh7760.c
> @@ -101,12 +101,12 @@ struct cami2c {
>  
>  static inline void OUT32(struct cami2c *cam, int reg, unsigned long val)
>  {
> -	ctrl_outl(val, (unsigned long)cam->iobase + reg);
> +	__raw_writel(val, (unsigned long)cam->iobase + reg);
>  }
>  
>  static inline unsigned long IN32(struct cami2c *cam, int reg)
>  {
> -	return ctrl_inl((unsigned long)cam->iobase + reg);
> +	return __raw_readl((unsigned long)cam->iobase + reg);
>  }
>  
>  static irqreturn_t sh7760_i2c_irq(int irq, void *ptr)
> -- 
> 1.7.2.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

  parent reply	other threads:[~2010-10-25  1:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-24  8:37 [PATCH] sh: i2c-sh7760: Replase from ctrl_* to __raw_* Nobuhiro Iwamatsu
     [not found] ` <1287909466-16898-1-git-send-email-iwamatsu-+mkmVskJBflAfugRpC6u6w@public.gmane.org>
2010-10-25  1:30   ` Ben Dooks [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-10-22 22:07 Nobuhiro Iwamatsu
2010-10-22 22:07 ` Nobuhiro Iwamatsu
2010-10-25  1:58 ` Paul Mundt
2010-10-25  1:58   ` Paul Mundt
     [not found]   ` <20101025015835.GE2173-M7jkjyW5wf5g9hUCZPvPmw@public.gmane.org>
2010-10-25 10:47     ` Ben Dooks
2010-10-25 10:47       ` Ben Dooks
     [not found]       ` <20101025104718.GF21564-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2010-10-25 11:13         ` Paul Mundt
2010-10-25 11:13           ` Paul Mundt
     [not found]           ` <20101025111324.GA16265-M7jkjyW5wf5g9hUCZPvPmw@public.gmane.org>
2010-10-25 12:42             ` Ben Dooks
2010-10-25 12:42               ` Ben Dooks
2010-10-26  0:08               ` Nobuhiro Iwamatsu
2010-10-26  0:08                 ` Nobuhiro Iwamatsu
     [not found]                 ` <AANLkTikh+h1nWHZCa29FQc1dw=z3ZhYEW8eSyFyS4C84-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-26  4:02                   ` Paul Mundt
2010-10-26  4:02                     ` Paul Mundt
2010-10-26  6:43                     ` Ben Dooks
2010-10-26  6:43                       ` Ben Dooks
2010-10-26  6:50                       ` Paul Mundt
2010-10-26  6:50                         ` Paul Mundt

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=20101025013029.GE21564@trinity.fluff.org \
    --to=ben-i2c-elnmno+kys3ytjvyw6ydsg@public.gmane.org \
    --cc=iwamatsu-+mkmVskJBflAfugRpC6u6w@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.