summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-03-13 11:49:50 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-03-21 11:26:21 +0100
commit1f38527d5878401611a0082e2926c9625e2331cf (patch)
tree3fe819eb015fcec30cd826743ce35a17b9bd5fdc /drivers/iio/pressure
parentiio: st_sensors: Use dev_get_platdata() to get platform_data (diff)
downloadlinux-1f38527d5878401611a0082e2926c9625e2331cf.tar.xz
linux-1f38527d5878401611a0082e2926c9625e2331cf.zip
iio: st_sensors: Drop unneeded explicit castings
In few places the unnecessary explicit castings are being used. Drop them for good. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/pressure')
-rw-r--r--drivers/iio/pressure/st_pressure_core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
index 8bb47c3b4d6b..789a2928504a 100644
--- a/drivers/iio/pressure/st_pressure_core.c
+++ b/drivers/iio/pressure/st_pressure_core.c
@@ -707,9 +707,7 @@ int st_press_common_probe(struct iio_dev *indio_dev)
indio_dev->channels = press_data->sensor_settings->ch;
indio_dev->num_channels = press_data->sensor_settings->num_ch;
- press_data->current_fullscale =
- (struct st_sensor_fullscale_avl *)
- &press_data->sensor_settings->fs.fs_avl[0];
+ press_data->current_fullscale = &press_data->sensor_settings->fs.fs_avl[0];
press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz;