diff mbox

iio: Drop duplicate forward declaration

Message ID e46d722561e1d2288ff8f421332c0499e38a2dcb.1507651877.git.lukas@wunner.de (mailing list archive)
State New, archived
Headers show

Commit Message

Lukas Wunner Oct. 10, 2017, 4:15 p.m. UTC
Commit 5f420b42079c ("staging:iio: Add extended IIO channel info") added
a forward declaration for struct iio_dev to <linux/iio/iio.h> but forgot
to remove an existing forward declaration further down originating from
commit 7ae8cf627558 ("staging: iio: chrdev.h rationalization").

Cc: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
---
 include/linux/iio/iio.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Jonathan Cameron Oct. 14, 2017, 5:29 p.m. UTC | #1
On Tue, 10 Oct 2017 18:15:34 +0200
Lukas Wunner <lukas@wunner.de> wrote:

> Commit 5f420b42079c ("staging:iio: Add extended IIO channel info") added
> a forward declaration for struct iio_dev to <linux/iio/iio.h> but forgot
> to remove an existing forward declaration further down originating from
> commit 7ae8cf627558 ("staging: iio: chrdev.h rationalization").
> 
> Cc: Lars-Peter Clausen <lars@metafoo.de>
> Signed-off-by: Lukas Wunner <lukas@wunner.de>
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks,

Jonathan
> ---
>  include/linux/iio/iio.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
> index 50cae85..20b6134 100644
> --- a/include/linux/iio/iio.h
> +++ b/include/linux/iio/iio.h
> @@ -365,7 +365,6 @@ static inline bool iio_channel_has_available(const struct iio_chan_spec *chan,
>  #define INDIO_MAX_RAW_ELEMENTS		4
>  
>  struct iio_trigger; /* forward declaration */
> -struct iio_dev;
>  
>  /**
>   * struct iio_info - constant information about device

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index 50cae85..20b6134 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -365,7 +365,6 @@  static inline bool iio_channel_has_available(const struct iio_chan_spec *chan,
 #define INDIO_MAX_RAW_ELEMENTS		4
 
 struct iio_trigger; /* forward declaration */
-struct iio_dev;
 
 /**
  * struct iio_info - constant information about device