Krzysztof Kozlowski 22a7c931c6 media: i2c: adp1653: simplify getting state container
The pointer to 'struct v4l2_subdev' is stored in drvdata via
v4l2_i2c_subdev_init() so there is no point of a dance like:

    struct i2c_client *client = to_i2c_client(struct device *dev)
    struct v4l2_subdev *sd = i2c_get_clientdata(client);

This allows to remove local variable 'client' and few pointer
dereferences.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-11-16 10:31:11 +01:00
..
2019-07-09 09:47:22 -07:00
2020-09-07 16:13:06 +02:00
2020-07-19 14:15:42 +02:00
2020-07-19 14:15:42 +02:00
2020-07-19 14:15:42 +02:00
2019-07-09 09:47:22 -07:00
2019-03-01 09:29:58 -05:00
2020-08-29 08:35:27 +02:00
2020-09-01 14:13:27 +02:00
2020-08-29 08:35:27 +02:00
2019-08-26 14:05:09 -03:00
2020-07-19 14:15:42 +02:00
2019-03-01 09:29:58 -05:00
2019-03-01 09:29:58 -05:00