[PATCH] I2C updates: small header cleanups
Linux Kernel Mailing List <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1585, 2005/01/29 14:21:15-02:00, [email protected] [PATCH] I2C updates: small header cleanups While editing i2c-algo-bit.c and i2c-algo-pcf.c (see 1/3 of this patch set), I noticed that both files include header files they do not need at all (namely linux/ioport.h and asm/uaccess.h). The following patch cleans this, additionally bringing the files in line with what we have in i2c CVS (thus the blank lines changes). i2c-algo-bit.c | 4 +--- i2c-algo-pcf.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff -Nru a/drivers/i2c/i2c-algo-bit.c b/drivers/i2c/i2c-algo-bit.c --- a/drivers/i2c/i2c-algo-bit.c 2005-01-30 15:37:12 -08:00 +++ b/drivers/i2c/i2c-algo-bit.c 2005-01-30 15:37:12 -08:00 @@ -28,13 +28,11 @@ #include <linux/delay.h> #include <linux/slab.h> #include <linux/init.h> -#include <asm/uaccess.h> -#include <linux/ioport.h> #include <linux/errno.h> #include <linux/sched.h> - #include <linux/i2c.h> #include <linux/i2c-algo-bit.h> + /* ----- global defines ----------------------------------------------- */ #define DEB(x) if (i2c_debug>=1) x; diff -Nru a/drivers/i2c/i2c-algo-pcf.c b/drivers/i2c/i2c-algo-pcf.c --- a/drivers/i2c/i2c-algo-pcf.c 2005-01-30 15:37:12 -08:00 +++ b/drivers/i2c/i2c-algo-pcf.c 2005-01-30 15:37:12 -08:00 @@ -32,14 +32,12 @@ #include <linux/delay.h> #include <linux/slab.h> #include <linux/init.h> -#include <asm/uaccess.h> -#include <linux/ioport.h> #include <linux/errno.h> #include <linux/sched.h> - #include <linux/i2c.h> #include <linux/i2c-algo-pcf.h> #include "i2c-pcf8584.h" + /* ----- global defines ----------------------------------------------- */ #define DEB(x) if (i2c_debug>=1) x