@@ -179,8 +179,6 @@ static int cros_ec_light_prox_probe(struct platform_device *pdev)
indio_dev = platform_get_drvdata(pdev);
state = iio_priv(indio_dev);
- state->core.type = state->core.resp->info.type;
- state->core.loc = state->core.resp->info.location;
state->core.info.read_raw = &cros_ec_light_prox_read;
state->core.info.write_raw = &cros_ec_light_prox_write;
@@ -125,8 +125,6 @@ static int cros_ec_baro_probe(struct platform_device *pdev)
indio_dev = platform_get_drvdata(pdev);
state = iio_priv(indio_dev);
- state->core.type = state->core.resp->info.type;
- state->core.loc = state->core.resp->info.location;
state->core.info.read_raw = &cros_ec_baro_read;
state->core.info.write_raw = &cros_ec_baro_write;
Drop redundant initialization previously set in cros_ec_sensors_init Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com> --- drivers/iio/light/cros_ec_light_prox.c | 2 -- drivers/iio/pressure/cros_ec_baro.c | 2 -- 2 files changed, 4 deletions(-)