You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
iio:common: Set the device pointer into ST common sensors library
Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
committed by
Jonathan Cameron
parent
a1dcf42927
commit
7be178bb48
@@ -51,7 +51,6 @@ static int st_press_i2c_probe(struct i2c_client *client,
|
||||
return -ENOMEM;
|
||||
|
||||
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, press_data);
|
||||
|
||||
@@ -29,7 +29,6 @@ static int st_press_spi_probe(struct spi_device *spi)
|
||||
return -ENOMEM;
|
||||
|
||||
press_data = iio_priv(indio_dev);
|
||||
press_data->dev = &spi->dev;
|
||||
|
||||
st_sensors_spi_configure(indio_dev, spi, press_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user