2010-07-27 07:49:33

by Alan

[permalink] [raw]
Subject: [RESEND PATCH] max3107: Fix gpiolib support

Because of the way gpiolib works we actually need to ifdef this in our
header file

Signed-off-by: Alan Cox <[email protected]>
---

drivers/serial/max3107.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/drivers/serial/max3107.h b/drivers/serial/max3107.h
index 72b3041..7ab6323 100644
--- a/drivers/serial/max3107.h
+++ b/drivers/serial/max3107.h
@@ -368,8 +368,10 @@ struct max3107_port {
/* SPI device structure */
struct spi_device *spi;

+#if defined(CONFIG_GPIOLIB)
/* GPIO chip stucture */
struct gpio_chip chip;
+#endif

/* Workqueue that does all the magic */
struct workqueue_struct *workqueue;


2010-07-27 18:49:27

by Randy Dunlap

[permalink] [raw]
Subject: Re: [RESEND PATCH] max3107: Fix gpiolib support

Alan Cox wrote:
> Because of the way gpiolib works we actually need to ifdef this in our
> header file
>
> Signed-off-by: Alan Cox <[email protected]>

Acked-by: Randy Dunlap <[email protected]>

Thanks.

> ---
>
> drivers/serial/max3107.h | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
>
> diff --git a/drivers/serial/max3107.h b/drivers/serial/max3107.h
> index 72b3041..7ab6323 100644
> --- a/drivers/serial/max3107.h
> +++ b/drivers/serial/max3107.h
> @@ -368,8 +368,10 @@ struct max3107_port {
> /* SPI device structure */
> struct spi_device *spi;
>
> +#if defined(CONFIG_GPIOLIB)
> /* GPIO chip stucture */
> struct gpio_chip chip;
> +#endif
>
> /* Workqueue that does all the magic */
> struct workqueue_struct *workqueue;
>
> --