OSDN Git Service

media: ov2740: Remove duplicative pointer in struct nvm_data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Jul 2022 12:05:49 +0000 (13:05 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:37:50 +0000 (08:37 +0000)
commit39cc0f20d1bc2bfd16aa8a05db84755d04d25b3c
treef20df93147d24f6d889589406c05936ade651ac0
parent67bfe08f82dbd0cb5fce16460017b0f21df734e4
media: ov2740: Remove duplicative pointer in struct nvm_data

The struct i2c_client pointer is used only to get driver data,
associated with a struct device or print messages on behalf.
Moreover, the very same pointer to a struct device is already
assigned by a regmap and can be retrieved from there.
No need to keep a duplicative pointer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov2740.c