media: i2c: imx290: Remove unneeded assignment of subdev device pointer
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 3 Jul 2025 21:42:06 +0000 (23:42 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 10 Jul 2025 09:32:26 +0000 (11:32 +0200)
commit2946bac895e3f1d9a1a97a726339ed3e4d439d19
treec3543aea956a7000fa971afddfc79c810664f7cc
parent76142b137b968d47b35cdd8d1dc924677d319c8b
media: i2c: imx290: Remove unneeded assignment of subdev device pointer

The core helper v4l2_i2c_subdev_init() already assignees the subdevices
dev pointer to the device associated with the i2c client passed to it.
And 'imx290->dev' is assigned to '&client->dev' already in probe before
calling imx290_subdev_init().

Remove the duplicated open-coded assignment in the driver, there is no
reason to do it twice.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/imx290.c