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 68df3416b612e608f2aaf8916a5905bdb627e466..46d22f3fb1a9bb0c3fb2259b6399fd1642d107d7 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 d9d7befdd77b4514190437ca13053838c02202b8..c688d974d3e3ec3d858a4f07e6dabf592866a395 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 84cf0043c99daaad56f481bef9bfd9b5aaeaf41d..e59d00c3139c00c15f44e4ab14c844341d9663e5 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 5a6162d1a2c0559f9dc56137ff7a533f3a99a38d..a98460b15e4b63fc791494c32b1594993a12b6d1 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 */