diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-05 05:32:01 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 18:36:11 (GMT) |
commit | 7cfce527a2cec1a2757136eb44d8dfa473a82d37 (patch) | |
tree | 146dbad498efeb653ad7c330480a7c7e91ae4cc7 /drivers/staging/iio/accel/sca3000_ring.c | |
parent | d1d8abdb05bddce645649c17949b0bc62e6f096b (diff) | |
download | linux-7cfce527a2cec1a2757136eb44d8dfa473a82d37.tar.xz |
Staging: iio: accel: fix up some sparse warnings.
Minor stuff (static, NULL, etc.)
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/accel/sca3000_ring.c')
-rw-r--r-- | drivers/staging/iio/accel/sca3000_ring.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c index 2b39e6f..8e8c068 100644 --- a/drivers/staging/iio/accel/sca3000_ring.c +++ b/drivers/staging/iio/accel/sca3000_ring.c @@ -186,9 +186,9 @@ static ssize_t sca3000_store_ring_bpse(struct device *dev, return ret ? ret : len; } -static IIO_SCAN_EL_C(accel_x, 0, 0, 0, 0); -static IIO_SCAN_EL_C(accel_y, 1, 0, 0, 0); -static IIO_SCAN_EL_C(accel_z, 2, 0, 0, 0); +static IIO_SCAN_EL_C(accel_x, 0, 0, 0, NULL); +static IIO_SCAN_EL_C(accel_y, 1, 0, 0, NULL); +static IIO_SCAN_EL_C(accel_z, 2, 0, 0, NULL); static IIO_CONST_ATTR(accel_precision_available, "8 11"); static IIO_DEVICE_ATTR(accel_precision, S_IRUGO | S_IWUSR, @@ -244,7 +244,7 @@ static struct iio_ring_buffer *sca3000_rb_allocate(struct iio_dev *indio_dev) ring = kzalloc(sizeof *ring, GFP_KERNEL); if (!ring) - return 0; + return NULL; ring->private = indio_dev; buf = &ring->buf; iio_ring_buffer_init(buf, indio_dev); |