lkml.org 
[lkml]   [2011]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mm] leds: fix pca9532 build when GPIOLIB is disabled
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix build when GPIOLIB is not enabled:

drivers/leds/leds-pca9532.c:39: error: field 'gpio' has incomplete type

for: drivers-leds-leds-pca9532c-add-gpio-capability.patch

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Joachim Eastwood <manabian@gmail.com>
---
drivers/leds/leds-pca9532.c | 2 ++
1 file changed, 2 insertions(+)

--- mmotm-2011-0331-1448.orig/drivers/leds/leds-pca9532.c
+++ mmotm-2011-0331-1448/drivers/leds/leds-pca9532.c
@@ -36,7 +36,9 @@ struct pca9532_data {
struct mutex update_lock;
struct input_dev *idev;
struct work_struct work;
+#ifdef CONFIG_LEDS_PCA9532_GPIO
struct gpio_chip gpio;
+#endif
u8 pwm[2];
u8 psc[2];
};

\
 
 \ /
  Last update: 2011-04-01 17:59    [W:0.147 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site