Skip to contentSkip to conversation

I2C: Kill unused includes in i2c-sensor-detect.c

PATCH New Jean Delvare 2 participants 2 messages May 19, 2005 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C: Kill unused includes in i2c-sensor-detect.c

Hi Greg,

Looks to me like i2c-sensor-detect.c includes a handful of headers it doesn't need at all. This patch removes them.

Please confirm that I am doing the right thing :)
Thanks.

drivers/i2c/i2c-sensor-detect.c renamed from drivers/i2c/i2c-sensor-detect.c.orig +0 -7
@@ -19,17 +19,10 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/slab.h>
-#include <linux/ctype.h>
-#include <linux/sysctl.h>
-#include <linux/init.h>
-#include <linux/ioport.h>
 #include <linux/i2c.h>
 #include <linux/i2c-sensor.h>
-#include <asm/uaccess.h>
 
 static unsigned short empty[] = {I2C_CLIENT_END};
 static unsigned int empty_isa[] = {I2C_CLIENT_ISA_END};
Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
Applied
#1 lore raw

PATCH 1/1 I2C: Kill unused includes in i2c-sensor-detect.c

Quoted 9 lines · Jean Delvare

Hi Greg,

Looks to me like i2c-sensor-detect.c includes a handful of headers it doesn't need at all. This patch removes them.

Please confirm that I am doing the right thing :)
Thanks.

Applied, thanks.

greg k-h