All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: pca953x: Staticise pca953x_get_altdata()
@ 2011-11-21 17:57 Mark Brown
  2011-11-21 19:54 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2011-11-21 17:57 UTC (permalink / raw)
  To: Linus Walleij, Grant Likely
  Cc: linux-kernel, patches, David Jander, Mark Brown

It's not used outside of the driver so doesn't need to be exported, and
sparse notices this and complains about it.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 drivers/gpio/gpio-pca953x.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index 147df8a..d3f3e8f 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -546,7 +546,7 @@ static void pca953x_irq_teardown(struct pca953x_chip *chip)
  * Translate OpenFirmware node properties into platform_data
  * WARNING: This is DEPRECATED and will be removed eventually!
  */
-void
+static void
 pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
 {
 	struct device_node *node;
@@ -574,7 +574,7 @@ pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
 		*invert = *val;
 }
 #else
-void
+static void
 pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
 {
 	*gpio_base = -1;
-- 
1.7.7.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: pca953x: Staticise pca953x_get_altdata()
  2011-11-21 17:57 [PATCH] gpio: pca953x: Staticise pca953x_get_altdata() Mark Brown
@ 2011-11-21 19:54 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2011-11-21 19:54 UTC (permalink / raw)
  To: Mark Brown; +Cc: Grant Likely, linux-kernel, patches, David Jander

On Mon, Nov 21, 2011 at 6:57 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:

> It's not used outside of the driver so doesn't need to be exported, and
> sparse notices this and complains about it.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

OK I've queued this for the -rcs.

Thanks!
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-21 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-21 17:57 [PATCH] gpio: pca953x: Staticise pca953x_get_altdata() Mark Brown
2011-11-21 19:54 ` Linus Walleij

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.