[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240902222824.1145571-10-andy.shevchenko@gmail.com>
Date: Tue, 3 Sep 2024 01:16:54 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Jonathan Cameron <Jonathan.Cameron@...wei.com>,
David Lechner <dlechner@...libre.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Michael Hennerich <michael.hennerich@...log.com>,
Antoniu Miclaus <antoniu.miclaus@...log.com>,
Jinjie Ruan <ruanjinjie@...wei.com>,
Lorenzo Bianconi <lorenzo@...nel.org>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Basavaraj Natikar <Basavaraj.Natikar@....com>,
linux-input@...r.kernel.org,
linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Jiri Kosina <jikos@...nel.org>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Michael Hennerich <Michael.Hennerich@...log.com>,
Andy Shevchenko <andy.shevchenko@...il.com>
Subject: [PATCH v1 09/22] iio: dac: m62332: Get platform data via dev_get_platdata()
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Access to platform data via dev_get_platdata() getter to make code cleaner.
Signed-off-by: Andy Shevchenko <andy.shevchenko@...il.com>
---
drivers/iio/dac/m62332.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/dac/m62332.c b/drivers/iio/dac/m62332.c
index ae53baccec91..3497513854d7 100644
--- a/drivers/iio/dac/m62332.c
+++ b/drivers/iio/dac/m62332.c
@@ -201,7 +201,7 @@ static int m62332_probe(struct i2c_client *client)
indio_dev->modes = INDIO_DIRECT_MODE;
indio_dev->info = &m62332_info;
- ret = iio_map_array_register(indio_dev, client->dev.platform_data);
+ ret = iio_map_array_register(indio_dev, dev_get_platdata(&client->dev));
if (ret < 0)
return ret;
--
2.46.0
Powered by blists - more mailing lists