media: i2c: mt9p031: simplify getting the adapter of a client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Jun 2019 10:55:48 +0000 (06:55 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 11 Jun 2019 16:22:43 +0000 (12:22 -0400)
commita8a3e813963c291de39206191a845cbe4b8fc4c7
treedefb24e47e619051283e0dbb41d4cc98a4c9b7a0
parent11a087f484bf15ff65f0a9f277aa5a61fd07ed2a
media: i2c: mt9p031: 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>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/mt9p031.c