* [PATCH] i2c: davinci: rename "i2c_recover_bus" function
@ 2013-04-04 13:54 Arnd Bergmann
[not found] ` <201304041354.30024.arnd-r2nGTMty4D4@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2013-04-04 13:54 UTC (permalink / raw)
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
Cc: Viresh Kumar,
davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/,
Wolfram Sang, Ben Dooks
As of commit 5f9296ba "i2c: Add bus recovery infrastructure", there
is now a global function with the same name, which clashes with
the davinci specific one. The obvious solution is to rename the
function with a davinci prefix.
Signed-off-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Cc: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org
Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c
index 7d1e590..3acc65a 100644
--- a/drivers/i2c/busses/i2c-davinci.c
+++ b/drivers/i2c/busses/i2c-davinci.c
@@ -155,7 +155,7 @@ static void generic_i2c_clock_pulse(unsigned int scl_pin)
/* This routine does i2c bus recovery as specified in the
* i2c protocol Rev. 03 section 3.16 titled "Bus clear"
*/
-static void i2c_recover_bus(struct davinci_i2c_dev *dev)
+static void i2c_davinci_recover_bus(struct davinci_i2c_dev *dev)
{
u32 flag = 0;
struct davinci_i2c_platform_data *pdata = dev->pdata;
@@ -289,7 +289,7 @@ static int i2c_davinci_wait_bus_not_busy(struct davinci_i2c_dev *dev,
return -ETIMEDOUT;
} else {
to_cnt = 0;
- i2c_recover_bus(dev);
+ i2c_davinci_recover_bus(dev);
i2c_davinci_init(dev);
}
}
@@ -379,7 +379,7 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop)
dev->adapter.timeout);
if (r == 0) {
dev_err(dev->dev, "controller timed out\n");
- i2c_recover_bus(dev);
+ i2c_davinci_recover_bus(dev);
i2c_davinci_init(dev);
dev->buf_len = 0;
return -ETIMEDOUT;
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <201304041354.30024.arnd-r2nGTMty4D4@public.gmane.org>]
* Re: [PATCH] i2c: davinci: rename "i2c_recover_bus" function [not found] ` <201304041354.30024.arnd-r2nGTMty4D4@public.gmane.org> @ 2013-04-04 14:07 ` Viresh Kumar [not found] ` <CAKohpomq6YzfftrHEnx5gqxjK8bagaRZbH=e_f2ZaRVgAspHkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-04-04 20:42 ` Wolfram Sang 1 sibling, 1 reply; 4+ messages in thread From: Viresh Kumar @ 2013-04-04 14:07 UTC (permalink / raw) To: Arnd Bergmann Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, Wolfram Sang, Ben Dooks, Sekhar Nori On 4 April 2013 19:24, Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> wrote: > As of commit 5f9296ba "i2c: Add bus recovery infrastructure", there > is now a global function with the same name, which clashes with > the davinci specific one. The obvious solution is to rename the > function with a davinci prefix. > > Signed-off-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> > Cc: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org > Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> > Cc: Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org> Acked-by: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> But i believe this stuff should be updated to use the generic recovery infrastructure, as it is in now. @Sekhar: Are you looking after it? ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAKohpomq6YzfftrHEnx5gqxjK8bagaRZbH=e_f2ZaRVgAspHkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] i2c: davinci: rename "i2c_recover_bus" function [not found] ` <CAKohpomq6YzfftrHEnx5gqxjK8bagaRZbH=e_f2ZaRVgAspHkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-04-05 5:21 ` Sekhar Nori 0 siblings, 0 replies; 4+ messages in thread From: Sekhar Nori @ 2013-04-05 5:21 UTC (permalink / raw) To: Viresh Kumar Cc: Arnd Bergmann, linux-i2c-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, Wolfram Sang, Ben Dooks On 4/4/2013 7:37 PM, Viresh Kumar wrote: > On 4 April 2013 19:24, Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> wrote: >> As of commit 5f9296ba "i2c: Add bus recovery infrastructure", there >> is now a global function with the same name, which clashes with >> the davinci specific one. The obvious solution is to rename the >> function with a davinci prefix. >> >> Signed-off-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> >> Cc: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> >> Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> Cc: davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org >> Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> >> Cc: Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org> > > Acked-by: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > > But i believe this stuff should be updated to use the generic recovery > infrastructure, as it is in now. > > @Sekhar: Are you looking after it? No, not in my plans ATM. Thanks, Sekhar ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: davinci: rename "i2c_recover_bus" function [not found] ` <201304041354.30024.arnd-r2nGTMty4D4@public.gmane.org> 2013-04-04 14:07 ` Viresh Kumar @ 2013-04-04 20:42 ` Wolfram Sang 1 sibling, 0 replies; 4+ messages in thread From: Wolfram Sang @ 2013-04-04 20:42 UTC (permalink / raw) To: Arnd Bergmann Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Viresh Kumar, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, Ben Dooks On Thu, Apr 04, 2013 at 01:54:29PM +0000, Arnd Bergmann wrote: > As of commit 5f9296ba "i2c: Add bus recovery infrastructure", there > is now a global function with the same name, which clashes with > the davinci specific one. The obvious solution is to rename the > function with a davinci prefix. > > Signed-off-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> adf68acf387a203d76315d72b36b829bde1d01b6 in linux-next of today. Thanks! ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-05 5:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04 13:54 [PATCH] i2c: davinci: rename "i2c_recover_bus" function Arnd Bergmann
[not found] ` <201304041354.30024.arnd-r2nGTMty4D4@public.gmane.org>
2013-04-04 14:07 ` Viresh Kumar
[not found] ` <CAKohpomq6YzfftrHEnx5gqxjK8bagaRZbH=e_f2ZaRVgAspHkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-05 5:21 ` Sekhar Nori
2013-04-04 20:42 ` Wolfram Sang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).