Patchwork [v2,2/4] iio: adc: lpc32xx: Cleanup headers

login
register
mail settings
Submitter Gregory CLEMENT
Date March 15, 2019, 9:52 a.m.
Message ID <20190315095231.17001-3-gregory.clement@bootlin.com>
Download mbox | patch
Permalink /patch/749445/
State New
Headers show

Comments

Gregory CLEMENT - March 15, 2019, 9:52 a.m.
A few headers is useless: remove them.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
---
 drivers/iio/adc/lpc32xx_adc.c | 6 ------
 1 file changed, 6 deletions(-)
Jonathan Cameron - March 16, 2019, 5:23 p.m.
On Fri, 15 Mar 2019 10:52:29 +0100
Gregory CLEMENT <gregory.clement@bootlin.com> wrote:

> A few headers is useless: remove them.
> 
> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
> ---
>  drivers/iio/adc/lpc32xx_adc.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/iio/adc/lpc32xx_adc.c b/drivers/iio/adc/lpc32xx_adc.c
> index 7084f804504e..f391c1e10136 100644
> --- a/drivers/iio/adc/lpc32xx_adc.c
> +++ b/drivers/iio/adc/lpc32xx_adc.c
> @@ -9,17 +9,11 @@
>  
>  #include <linux/clk.h>
>  #include <linux/completion.h>
> -#include <linux/device.h>
> -#include <linux/err.h>
 -EINVAL comes from asm/errno.h I believe. IS_ERR
is also in this header.  Otherwise, they are fine, so
I'll just leave this one.

>  #include <linux/iio/iio.h>
> -#include <linux/iio/sysfs.h>
>  #include <linux/interrupt.h>
>  #include <linux/io.h>
> -#include <linux/kernel.h>
>  #include <linux/module.h>
> -#include <linux/of.h>
>  #include <linux/platform_device.h>
> -#include <linux/slab.h>
>  
>  /*
>   * LPC32XX registers definitions

Patch

diff --git a/drivers/iio/adc/lpc32xx_adc.c b/drivers/iio/adc/lpc32xx_adc.c
index 7084f804504e..f391c1e10136 100644
--- a/drivers/iio/adc/lpc32xx_adc.c
+++ b/drivers/iio/adc/lpc32xx_adc.c
@@ -9,17 +9,11 @@ 
 
 #include <linux/clk.h>
 #include <linux/completion.h>
-#include <linux/device.h>
-#include <linux/err.h>
 #include <linux/iio/iio.h>
-#include <linux/iio/sysfs.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
-#include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of.h>
 #include <linux/platform_device.h>
-#include <linux/slab.h>
 
 /*
  * LPC32XX registers definitions