Commit 5a70925b authored by simran singhal's avatar simran singhal Committed by Jonathan Cameron

iio: gyro: adis16060: Change the name of function.

Change the name of function from adis16060_spi_write_than_read()
to adis16060_spi_write_then_read(). change "than" to "then" as
its time depended.
Signed-off-by: default avatarsimran singhal <singhalsimran0@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 98b6d2b6
...@@ -40,7 +40,7 @@ struct adis16060_state { ...@@ -40,7 +40,7 @@ struct adis16060_state {
static struct iio_dev *adis16060_iio_dev; static struct iio_dev *adis16060_iio_dev;
static int adis16060_spi_write_than_read(struct iio_dev *indio_dev, static int adis16060_spi_write_then_read(struct iio_dev *indio_dev,
u8 conf, u16 *val) u8 conf, u16 *val)
{ {
int ret; int ret;
...@@ -81,7 +81,7 @@ static int adis16060_read_raw(struct iio_dev *indio_dev, ...@@ -81,7 +81,7 @@ static int adis16060_read_raw(struct iio_dev *indio_dev,
switch (mask) { switch (mask) {
case IIO_CHAN_INFO_RAW: case IIO_CHAN_INFO_RAW:
ret = adis16060_spi_write_than_read(indio_dev, ret = adis16060_spi_write_then_read(indio_dev,
chan->address, &tval); chan->address, &tval);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment