diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2010-06-26 12:54:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-08 12:25:27 -0700 |
commit | c40ab87494522201a8478305204c3db8e051af73 (patch) | |
tree | 3e6dc1e3937fff499592de994e2a5d734f9d80a9 /drivers/staging/iio/adc/max1363_core.c | |
parent | 962a4ccb4ab76a297ef63e2c5de78cb56220d0f8 (diff) |
staging:iio:max1363 trivial code and comment cleanups.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/adc/max1363_core.c')
-rw-r--r-- | drivers/staging/iio/adc/max1363_core.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/iio/adc/max1363_core.c b/drivers/staging/iio/adc/max1363_core.c index 9b60b275de84..31d856375faa 100644 --- a/drivers/staging/iio/adc/max1363_core.c +++ b/drivers/staging/iio/adc/max1363_core.c @@ -23,16 +23,15 @@ */ #include <linux/interrupt.h> -#include <linux/gpio.h> #include <linux/workqueue.h> #include <linux/device.h> #include <linux/kernel.h> #include <linux/sysfs.h> #include <linux/list.h> #include <linux/i2c.h> -#include <linux/rtc.h> #include <linux/regulator/consumer.h> #include <linux/slab.h> +#include <linux/err.h> #include "../iio.h" #include "../sysfs.h" @@ -48,7 +47,7 @@ IIO_SCAN_EL_C(in##number, number, IIO_UNSIGNED(16), 0, NULL); #define MAX1363_SCAN_EL_D(p, n, number) \ IIO_SCAN_NAMED_EL_C(in##p##m##in##n, in##p-in##n, \ - number, IIO_SIGNED(16), 0 , NULL); + number, IIO_SIGNED(16), 0, NULL); static MAX1363_SCAN_EL(0); static MAX1363_SCAN_EL(1); @@ -167,7 +166,7 @@ static int max1363_write_basic_config(struct i2c_client *client, unsigned char d2) { int ret; - u8 *tx_buf = kmalloc(2 , GFP_KERNEL); + u8 *tx_buf = kmalloc(2, GFP_KERNEL); if (!tx_buf) return -ENOMEM; |