Message ID | 20220502210858.3377574-1-swboyd@chromium.org |
---|---|
State | New |
Headers | show |
Series | iio:proximity:sx_common: Fix device property parsing on DT systems | expand |
diff --git a/drivers/iio/proximity/sx9310.c b/drivers/iio/proximity/sx9310.c index a3fdb59b06d2..976220bdf81a 100644 --- a/drivers/iio/proximity/sx9310.c +++ b/drivers/iio/proximity/sx9310.c @@ -1436,6 +1436,7 @@ static int sx9310_probe(struct i2c_client *client) return ret; ACPI_COMPANION_SET(&indio_dev->dev, ACPI_COMPANION(dev)); + indio_dev->dev.of_node = client->dev.of_node; indio_dev->channels = sx9310_channels; indio_dev->num_channels = ARRAY_SIZE(sx9310_channels); indio_dev->info = &sx9310_info;