iio: Remove unnecessary _write_raw_get_fmt() in several hid-sensor drivers
authorPeter Meerwald <pmeerw@pmeerw.net>
Sun, 18 Aug 2013 13:07:00 +0000 (14:07 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 19 Aug 2013 19:01:25 +0000 (20:01 +0100)
IIO_VAL_INT_PLUS_MICRO is the default, no need to return it explicitly

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/hid-sensor-accel-3d.c
drivers/iio/gyro/hid-sensor-gyro-3d.c
drivers/iio/light/hid-sensor-als.c
drivers/iio/magnetometer/hid-sensor-magn-3d.c

index 68df341..46d22f3 100644 (file)
@@ -175,18 +175,10 @@ static int accel_3d_write_raw(struct iio_dev *indio_dev,
        return ret;
 }
 
-static int accel_3d_write_raw_get_fmt(struct iio_dev *indio_dev,
-                              struct iio_chan_spec const *chan,
-                              long mask)
-{
-       return IIO_VAL_INT_PLUS_MICRO;
-}
-
 static const struct iio_info accel_3d_info = {
        .driver_module = THIS_MODULE,
        .read_raw = &accel_3d_read_raw,
        .write_raw = &accel_3d_write_raw,
-       .write_raw_get_fmt = &accel_3d_write_raw_get_fmt,
 };
 
 /* Function to push data to buffer */
index d9d7bef..c688d97 100644 (file)
@@ -175,18 +175,10 @@ static int gyro_3d_write_raw(struct iio_dev *indio_dev,
        return ret;
 }
 
-static int gyro_3d_write_raw_get_fmt(struct iio_dev *indio_dev,
-                              struct iio_chan_spec const *chan,
-                              long mask)
-{
-       return IIO_VAL_INT_PLUS_MICRO;
-}
-
 static const struct iio_info gyro_3d_info = {
        .driver_module = THIS_MODULE,
        .read_raw = &gyro_3d_read_raw,
        .write_raw = &gyro_3d_write_raw,
-       .write_raw_get_fmt = &gyro_3d_write_raw_get_fmt,
 };
 
 /* Function to push data to buffer */
index 84cf004..e59d00c 100644 (file)
@@ -154,18 +154,10 @@ static int als_write_raw(struct iio_dev *indio_dev,
        return ret;
 }
 
-static int als_write_raw_get_fmt(struct iio_dev *indio_dev,
-                              struct iio_chan_spec const *chan,
-                              long mask)
-{
-       return IIO_VAL_INT_PLUS_MICRO;
-}
-
 static const struct iio_info als_info = {
        .driver_module = THIS_MODULE,
        .read_raw = &als_read_raw,
        .write_raw = &als_write_raw,
-       .write_raw_get_fmt = &als_write_raw_get_fmt,
 };
 
 /* Function to push data to buffer */
index 5a6162d..a98460b 100644 (file)
@@ -176,18 +176,10 @@ static int magn_3d_write_raw(struct iio_dev *indio_dev,
        return ret;
 }
 
-static int magn_3d_write_raw_get_fmt(struct iio_dev *indio_dev,
-                              struct iio_chan_spec const *chan,
-                              long mask)
-{
-       return IIO_VAL_INT_PLUS_MICRO;
-}
-
 static const struct iio_info magn_3d_info = {
        .driver_module = THIS_MODULE,
        .read_raw = &magn_3d_read_raw,
        .write_raw = &magn_3d_write_raw,
-       .write_raw_get_fmt = &magn_3d_write_raw_get_fmt,
 };
 
 /* Function to push data to buffer */