[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <B256D81BAE5131468A838E5D7A2436413A01CE7D@penmbx01>
Date: Tue, 4 Dec 2012 03:13:09 +0000
From: "Yang, Wenyou" <Wenyou.Yang@...el.com>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@...osoft.com>
CC: "linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"wim@...ana.be" <wim@...ana.be>,
"linux-watchdog@...r.kernel.org" <linux-watchdog@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Ferre, Nicolas" <Nicolas.FERRE@...el.com>,
"Lin, JM" <JM.Lin@...el.com>
Subject: RE: [PATCH 03/11] watchdog/at91sam9_wdt: change the wdt_read and
wdt_write macro to the inline function
Hi JC,
> -----Original Message-----
> From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagnioj@...osoft.com]
> Sent: 2012年11月16日 21:49
> To: Yang, Wenyou
> Cc: linux-arm-kernel@...ts.infradead.org; wim@...ana.be;
> linux-watchdog@...r.kernel.org; linux-kernel@...r.kernel.org; Ferre, Nicolas; Lin,
> JM
> Subject: Re: [PATCH 03/11] watchdog/at91sam9_wdt: change the wdt_read and
> wdt_write macro to the inline function
>
> On 15:16 Wed 14 Nov , Wenyou Yang wrote:
> > Signed-off-by: Wenyou Yang <wenyou.yang@...el.com>
> > ---
> > drivers/watchdog/at91sam9_wdt.c | 28 ++++++++++++++++++----------
> > 1 file changed, 18 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c
> > index 31c914a..98e7d5a 100644
> > --- a/drivers/watchdog/at91sam9_wdt.c
> > +++ b/drivers/watchdog/at91sam9_wdt.c
> > @@ -34,11 +34,6 @@
> >
> > #define DRV_NAME "AT91SAM9 Watchdog"
> >
> > -#define wdt_read(field) \
> > - __raw_readl(at91wdt_private.base + field)
> > -#define wdt_write(field, val) \
> > - __raw_writel((val), at91wdt_private.base + field)
> > -
> > /* AT91SAM9 watchdog runs a 12bit counter @ 256Hz,
> > * use this to convert a watchdog
> > * value from/to milliseconds.
> > @@ -75,13 +70,24 @@ struct at91wdt_drvdata {
> >
> > /* ......................................................................... */
> >
> > +static inline unsigned int wdt_read(struct at91wdt_drvdata *driver_data,
> > + unsigned int field)
> > +{
> > + return __raw_readl(driver_data->base + field);
> > +}
> > +
> > +static inline void wdt_write(struct at91wdt_drvdata *driver_data,
> > + unsigned int field, unsigned int val)
> > +{
> > + __raw_writel((val), driver_data->base + field);
> > +}
> use relaxed version
Thanks, I will change it.
>
> Best Regrds,
> J.
Best Regards,
Wenyou Yang
Powered by blists - more mailing lists