* [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error
@ 2014-06-19 15:03 Lee Jones
2014-06-19 15:07 ` Alexandre Courbot
0 siblings, 1 reply; 5+ messages in thread
From: Lee Jones @ 2014-06-19 15:03 UTC (permalink / raw)
To: linux-arm-kernel
drivers/gpio/gpio-crystalcove.c: In function 'crystalcove_gpio_dbg_show':
drivers/gpio/gpio-crystalcove.c:286:3: error: implicit declaration of function 'seq_printf'
seq_printf(s, " gpio-%-2d %s %s %s %s ctlo=%2x,%s %s %s\n",
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
I'm looking for a quick Ack on this patch. It's a fix to an immutable
branch that I'm carrying which is shared between GPIO and MFD. Stephen
reported it when the MFD tree was sucked into -next.
Alexandre,
I believe Linus is out on vacation this week, so if you could take a
quick look at this, I'd be much obliged.
Linus,
Once I've acquired the aforementioned Ack I'll fix this patch up into
our immutable branch and send another pull-request.
---
drivers/gpio/gpio-crystalcove.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c
index 5a98499..934462f 100644
--- a/drivers/gpio/gpio-crystalcove.c
+++ b/drivers/gpio/gpio-crystalcove.c
@@ -18,6 +18,7 @@
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
+#include <linux/seq_file.h>
#include <linux/bitops.h>
#include <linux/regmap.h>
#include <linux/mfd/intel_soc_pmic.h>
--
1.8.3.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error
2014-06-19 15:03 [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error Lee Jones
@ 2014-06-19 15:07 ` Alexandre Courbot
2014-06-19 15:19 ` Lee Jones
0 siblings, 1 reply; 5+ messages in thread
From: Alexandre Courbot @ 2014-06-19 15:07 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jun 20, 2014 at 12:03 AM, Lee Jones <lee.jones@linaro.org> wrote:
> drivers/gpio/gpio-crystalcove.c: In function 'crystalcove_gpio_dbg_show':
> drivers/gpio/gpio-crystalcove.c:286:3: error: implicit declaration of function 'seq_printf'
> seq_printf(s, " gpio-%-2d %s %s %s %s ctlo=%2x,%s %s %s\n",
>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
> I'm looking for a quick Ack on this patch. It's a fix to an immutable
> branch that I'm carrying which is shared between GPIO and MFD. Stephen
> reported it when the MFD tree was sucked into -next.
>
> Alexandre,
> I believe Linus is out on vacation this week, so if you could take a
> quick look at this, I'd be much obliged.
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Hope that's fast enough. ;)
>
> Linus,
> Once I've acquired the aforementioned Ack I'll fix this patch up into
> our immutable branch and send another pull-request.
> ---
> drivers/gpio/gpio-crystalcove.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c
> index 5a98499..934462f 100644
> --- a/drivers/gpio/gpio-crystalcove.c
> +++ b/drivers/gpio/gpio-crystalcove.c
> @@ -18,6 +18,7 @@
> #include <linux/interrupt.h>
> #include <linux/platform_device.h>
> #include <linux/gpio.h>
> +#include <linux/seq_file.h>
> #include <linux/bitops.h>
> #include <linux/regmap.h>
> #include <linux/mfd/intel_soc_pmic.h>
> --
> 1.8.3.2
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error
2014-06-19 15:07 ` Alexandre Courbot
@ 2014-06-19 15:19 ` Lee Jones
0 siblings, 0 replies; 5+ messages in thread
From: Lee Jones @ 2014-06-19 15:19 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, 20 Jun 2014, Alexandre Courbot wrote:
> On Fri, Jun 20, 2014 at 12:03 AM, Lee Jones <lee.jones@linaro.org> wrote:
> > drivers/gpio/gpio-crystalcove.c: In function 'crystalcove_gpio_dbg_show':
> > drivers/gpio/gpio-crystalcove.c:286:3: error: implicit declaration of function 'seq_printf'
> > seq_printf(s, " gpio-%-2d %s %s %s %s ctlo=%2x,%s %s %s\n",
> >
> > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > Signed-off-by: Lee Jones <lee.jones@linaro.org>
> > ---
> > I'm looking for a quick Ack on this patch. It's a fix to an immutable
> > branch that I'm carrying which is shared between GPIO and MFD. Stephen
> > reported it when the MFD tree was sucked into -next.
> >
> > Alexandre,
> > I believe Linus is out on vacation this week, so if you could take a
> > quick look at this, I'd be much obliged.
>
> Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Thanks Alexandre.
> Hope that's fast enough. ;)
~4 mins. Not too bad! ;)
> > Linus,
> > Once I've acquired the aforementioned Ack I'll fix this patch up into
> > our immutable branch and send another pull-request.
> > ---
> > drivers/gpio/gpio-crystalcove.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c
> > index 5a98499..934462f 100644
> > --- a/drivers/gpio/gpio-crystalcove.c
> > +++ b/drivers/gpio/gpio-crystalcove.c
> > @@ -18,6 +18,7 @@
> > #include <linux/interrupt.h>
> > #include <linux/platform_device.h>
> > #include <linux/gpio.h>
> > +#include <linux/seq_file.h>
> > #include <linux/bitops.h>
> > #include <linux/regmap.h>
> > #include <linux/mfd/intel_soc_pmic.h>
> >
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 0/7] i2c: Relax mandatory I2C ID table passing
@ 2014-06-20 12:02 Lee Jones
2014-06-20 12:02 ` [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error Lee Jones
0 siblings, 1 reply; 5+ messages in thread
From: Lee Jones @ 2014-06-20 12:02 UTC (permalink / raw)
To: linux-arm-kernel
Hi Wolfram,
As previously discussed I believe it should be okay for an I2C device
driver _not_ supply an I2C ID table to match to. The I2C subsystem
should be able to match via other means, such as via OF tables. The
blocking factor during our previous conversation was to keep
registering via sysfs up and running. This set does that.
After thinking more deeply about the problem, it occurred to me that
any I2C device driver which uses the sysfs method and issues an
of_match_device() would also fail their probe(). Bolted on to this
set is a new, more generic way for these devices to match against
either of the I2C/OF tables.
I hope this ticks all of your boxes.
v3:
- Insist on passing 'struct i2c_client' instead of 'struct device'
- Remove hook from of_match_device()
v2:
- Removal of ACPI support (this is really an OF issue).
- Add a new .probe2( with will seamlessly replace
- Supply a warning on devices matching via OF without a suitable compatible
- Remove unified match_device() - bad idea as it subverts type-safe behaviour
- Provide examples of the kind of clean-up possible after this set.
- I already have the full support from the maintainer of these drivers =;-)
Kind regards,
Lee
arch/arm/configs/multi_v7_defconfig | 1 +
drivers/i2c/i2c-core.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
drivers/mfd/88pm860x-core.c | 5 ++---
drivers/mfd/as3722.c | 12 ++----------
include/linux/i2c.h | 22 +++++++++++++++++++++-
5 files changed, 89 insertions(+), 23 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error
2014-06-20 12:02 [PATCH v3 0/7] i2c: Relax mandatory I2C ID table passing Lee Jones
@ 2014-06-20 12:02 ` Lee Jones
2014-06-24 10:26 ` Lee Jones
0 siblings, 1 reply; 5+ messages in thread
From: Lee Jones @ 2014-06-20 12:02 UTC (permalink / raw)
To: linux-arm-kernel
drivers/gpio/gpio-crystalcove.c: In function 'crystalcove_gpio_dbg_show':
drivers/gpio/gpio-crystalcove.c:286:3: error: implicit declaration of function 'seq_printf'
seq_printf(s, " gpio-%-2d %s %s %s %s ctlo=%2x,%s %s %s\n",
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
drivers/gpio/gpio-crystalcove.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c
index 5a98499..934462f 100644
--- a/drivers/gpio/gpio-crystalcove.c
+++ b/drivers/gpio/gpio-crystalcove.c
@@ -18,6 +18,7 @@
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
+#include <linux/seq_file.h>
#include <linux/bitops.h>
#include <linux/regmap.h>
#include <linux/mfd/intel_soc_pmic.h>
--
1.8.3.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error
2014-06-20 12:02 ` [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error Lee Jones
@ 2014-06-24 10:26 ` Lee Jones
0 siblings, 0 replies; 5+ messages in thread
From: Lee Jones @ 2014-06-24 10:26 UTC (permalink / raw)
To: linux-arm-kernel
Hmm... a leftover patch in my 'send' directory I feel!
Please ignore.
> drivers/gpio/gpio-crystalcove.c: In function 'crystalcove_gpio_dbg_show':
> drivers/gpio/gpio-crystalcove.c:286:3: error: implicit declaration of function 'seq_printf'
> seq_printf(s, " gpio-%-2d %s %s %s %s ctlo=%2x,%s %s %s\n",
>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
> drivers/gpio/gpio-crystalcove.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c
> index 5a98499..934462f 100644
> --- a/drivers/gpio/gpio-crystalcove.c
> +++ b/drivers/gpio/gpio-crystalcove.c
> @@ -18,6 +18,7 @@
> #include <linux/interrupt.h>
> #include <linux/platform_device.h>
> #include <linux/gpio.h>
> +#include <linux/seq_file.h>
> #include <linux/bitops.h>
> #include <linux/regmap.h>
> #include <linux/mfd/intel_soc_pmic.h>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-24 10:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-19 15:03 [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error Lee Jones
2014-06-19 15:07 ` Alexandre Courbot
2014-06-19 15:19 ` Lee Jones
-- strict thread matches above, loose matches on Subject: below --
2014-06-20 12:02 [PATCH v3 0/7] i2c: Relax mandatory I2C ID table passing Lee Jones
2014-06-20 12:02 ` [PATCH] gpio: crystalcove: Fix implicit declaration of function 'seq_printf' error Lee Jones
2014-06-24 10:26 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox