summaryrefslogtreecommitdiff
path: root/drivers/iio/pressure/st_pressure_spi.c
diff options
context:
space:
mode:
authorDenis CIOCCA <denis.ciocca@st.com>2014-10-03 17:35:40 +0200
committerJonathan Cameron <jic23@kernel.org>2014-10-04 11:26:09 +0100
commita1dcf42927a3eebe749b14178441889ef3887ceb (patch)
tree1ba4677a68df92a52fc060c9b4cd662c5ff57495 /drivers/iio/pressure/st_pressure_spi.c
parent0baa3fc1b6c1e928260ca099cbdf551ced2cbfa3 (diff)
iio:pressure: Changed pressure data variable name to press_data
This patch fix pressure data variable name. Usually pdata name it is used for platform data. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure/st_pressure_spi.c')
-rw-r--r--drivers/iio/pressure/st_pressure_spi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c
index 98c3e8e517ae..10c96245f12a 100644
--- a/drivers/iio/pressure/st_pressure_spi.c
+++ b/drivers/iio/pressure/st_pressure_spi.c
@@ -21,17 +21,17 @@
static int st_press_spi_probe(struct spi_device *spi)
{
struct iio_dev *indio_dev;
- struct st_sensor_data *pdata;
+ struct st_sensor_data *press_data;
int err;
- indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*pdata));
+ indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*press_data));
if (indio_dev == NULL)
return -ENOMEM;
- pdata = iio_priv(indio_dev);
- pdata->dev = &spi->dev;
+ press_data = iio_priv(indio_dev);
+ press_data->dev = &spi->dev;
- st_sensors_spi_configure(indio_dev, spi, pdata);
+ st_sensors_spi_configure(indio_dev, spi, press_data);
err = st_press_common_probe(indio_dev);
if (err < 0)