forked from Minki/linux
iio: Remove unnecessary _write_raw_get_fmt() in several hid-sensor drivers
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>
This commit is contained in:
parent
d536321df3
commit
0c0427acd5
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user