diff options
author | Denis CIOCCA <denis.ciocca@st.com> | 2014-10-03 17:35:38 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-10-04 11:25:19 +0100 |
commit | 2109eb4c0c7d21669ae2ad0cda90c438b5470bf3 (patch) | |
tree | e61e6d3acce3a4eb0d2930911a12a85555fe4b46 /drivers/iio/magnetometer/st_magn_core.c | |
parent | ef67b341477e54178245dcd7b349a209ec78d29d (diff) | |
download | op-kernel-dev-2109eb4c0c7d21669ae2ad0cda90c438b5470bf3.zip op-kernel-dev-2109eb4c0c7d21669ae2ad0cda90c438b5470bf3.tar.gz |
iio:magnetometer: Removed unnecessary parameter on common_probe function
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer/st_magn_core.c')
-rw-r--r-- | drivers/iio/magnetometer/st_magn_core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index b65405f..1f3c1b7 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -353,8 +353,7 @@ static const struct iio_info magn_info = { .write_raw = &st_magn_write_raw, }; -int st_magn_common_probe(struct iio_dev *indio_dev, - struct st_sensors_platform_data *pdata) +int st_magn_common_probe(struct iio_dev *indio_dev) { struct st_sensor_data *mdata = iio_priv(indio_dev); int irq = mdata->get_irq_data_ready(indio_dev); @@ -380,7 +379,7 @@ int st_magn_common_probe(struct iio_dev *indio_dev, &mdata->sensor_settings->fs.fs_avl[0]; mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; - err = st_sensors_init_sensor(indio_dev, pdata); + err = st_sensors_init_sensor(indio_dev, NULL); if (err < 0) return err; |