media: i2c: tw9910: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:55:50 +0000 (06:55 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 15:17:03 +0000 (11:17 -0400)
commit2a50c83bbd724e8583602ac76fc04c369bd35493
tree4db2ef0f35e2d9692a1e6e5a759b290de105ae1f
parente64de2082dab5e0ca51f7dbe83029f0d7b5b3d34
media: i2c: tw9910: simplify getting the adapter of a client

We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/tw9910.c