diff options
author | Denis CIOCCA <denis.ciocca@st.com> | 2014-10-03 17:35:40 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-10-04 11:26:09 +0100 |
commit | a1dcf42927a3eebe749b14178441889ef3887ceb (patch) | |
tree | 1ba4677a68df92a52fc060c9b4cd662c5ff57495 /drivers/iio/pressure/st_pressure_i2c.c | |
parent | 0baa3fc1b6c1e928260ca099cbdf551ced2cbfa3 (diff) | |
download | lwn-a1dcf42927a3eebe749b14178441889ef3887ceb.tar.gz lwn-a1dcf42927a3eebe749b14178441889ef3887ceb.zip |
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_i2c.c')
-rw-r--r-- | drivers/iio/pressure/st_pressure_i2c.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c index dd733513152d..8859e93e6dc6 100644 --- a/drivers/iio/pressure/st_pressure_i2c.c +++ b/drivers/iio/pressure/st_pressure_i2c.c @@ -43,18 +43,18 @@ static int st_press_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct iio_dev *indio_dev; - struct st_sensor_data *pdata; + struct st_sensor_data *press_data; int err; - indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*pdata)); + indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*press_data)); if (!indio_dev) return -ENOMEM; - pdata = iio_priv(indio_dev); - pdata->dev = &client->dev; + press_data = iio_priv(indio_dev); + press_data->dev = &client->dev; st_sensors_of_i2c_probe(client, st_press_of_match); - st_sensors_i2c_configure(indio_dev, client, pdata); + st_sensors_i2c_configure(indio_dev, client, press_data); err = st_press_common_probe(indio_dev); if (err < 0) |