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);
|
||||
|
Reference in New Issue
Block a user