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>
This commit is contained in:
Родитель
ef67b34147
Коммит
2109eb4c0c
|
@ -18,8 +18,7 @@
|
||||||
#define LSM303DLM_MAGN_DEV_NAME "lsm303dlm_magn"
|
#define LSM303DLM_MAGN_DEV_NAME "lsm303dlm_magn"
|
||||||
#define LIS3MDL_MAGN_DEV_NAME "lis3mdl"
|
#define LIS3MDL_MAGN_DEV_NAME "lis3mdl"
|
||||||
|
|
||||||
int st_magn_common_probe(struct iio_dev *indio_dev,
|
int st_magn_common_probe(struct iio_dev *indio_dev);
|
||||||
struct st_sensors_platform_data *pdata);
|
|
||||||
void st_magn_common_remove(struct iio_dev *indio_dev);
|
void st_magn_common_remove(struct iio_dev *indio_dev);
|
||||||
|
|
||||||
#ifdef CONFIG_IIO_BUFFER
|
#ifdef CONFIG_IIO_BUFFER
|
||||||
|
|
|
@ -353,8 +353,7 @@ static const struct iio_info magn_info = {
|
||||||
.write_raw = &st_magn_write_raw,
|
.write_raw = &st_magn_write_raw,
|
||||||
};
|
};
|
||||||
|
|
||||||
int st_magn_common_probe(struct iio_dev *indio_dev,
|
int st_magn_common_probe(struct iio_dev *indio_dev)
|
||||||
struct st_sensors_platform_data *pdata)
|
|
||||||
{
|
{
|
||||||
struct st_sensor_data *mdata = iio_priv(indio_dev);
|
struct st_sensor_data *mdata = iio_priv(indio_dev);
|
||||||
int irq = mdata->get_irq_data_ready(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->sensor_settings->fs.fs_avl[0];
|
||||||
mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz;
|
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)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ static int st_magn_i2c_probe(struct i2c_client *client,
|
||||||
|
|
||||||
st_sensors_i2c_configure(indio_dev, client, mdata);
|
st_sensors_i2c_configure(indio_dev, client, mdata);
|
||||||
|
|
||||||
err = st_magn_common_probe(indio_dev, NULL);
|
err = st_magn_common_probe(indio_dev);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ static int st_magn_spi_probe(struct spi_device *spi)
|
||||||
|
|
||||||
st_sensors_spi_configure(indio_dev, spi, mdata);
|
st_sensors_spi_configure(indio_dev, spi, mdata);
|
||||||
|
|
||||||
err = st_magn_common_probe(indio_dev, NULL);
|
err = st_magn_common_probe(indio_dev);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче