Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: common: scmi_sensors: Drop duplicate setting of iio_dev.dev.parent

This is already set to the same value in devm_iio_device_alloc()

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jyoti Bhayana <jbhayana@google.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210426170251.351957-9-jic23@kernel.org

-1
-1
drivers/iio/common/scmi_sensors/scmi_iio.c
··· 525 525 return ERR_PTR(-ENOMEM); 526 526 527 527 iiodev->modes = INDIO_DIRECT_MODE; 528 - iiodev->dev.parent = dev; 529 528 sensor = iio_priv(iiodev); 530 529 sensor->sensor_ops = ops; 531 530 sensor->ph = ph;