diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2021-02-09 22:13:15 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-03-11 20:47:07 +0000 |
commit | b624fd14a9275bd546b63cf103cee6c9f57a4f55 (patch) | |
tree | 91b63115105cd40d6c147ac3e6b0b0c4eacf4902 /drivers/iio/chemical | |
parent | 8827faab2c8b52e848071a039a945db6f3ae8365 (diff) | |
download | linux-stable-b624fd14a9275bd546b63cf103cee6c9f57a4f55.tar.gz linux-stable-b624fd14a9275bd546b63cf103cee6c9f57a4f55.tar.bz2 linux-stable-b624fd14a9275bd546b63cf103cee6c9f57a4f55.zip |
iio: use getter/setter functions
Use getter and setter functions, for a variety of data types.
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Link: https://lore.kernel.org/r/20210209211315.1261791-1-Julia.Lawall@inria.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/chemical')
-rw-r--r-- | drivers/iio/chemical/scd30_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/chemical/scd30_serial.c b/drivers/iio/chemical/scd30_serial.c index 06f85eb1a4dd..568b34486c44 100644 --- a/drivers/iio/chemical/scd30_serial.c +++ b/drivers/iio/chemical/scd30_serial.c @@ -177,7 +177,7 @@ static int scd30_serdev_command(struct scd30_state *state, enum scd30_cmd cmd, u static int scd30_serdev_receive_buf(struct serdev_device *serdev, const unsigned char *buf, size_t size) { - struct iio_dev *indio_dev = dev_get_drvdata(&serdev->dev); + struct iio_dev *indio_dev = serdev_device_get_drvdata(serdev); struct scd30_serdev_priv *priv; struct scd30_state *state; int num; |