diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2021-01-27 18:46:34 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-02-06 09:36:29 +0100 |
commit | 2b585242b8619799fab2d0840f35cc936ed88749 (patch) | |
tree | c29284e65d8aeb113798a5ed361f26e07b2d77bc /fs/freevxfs | |
parent | 9d14932d3eb0644684aa85b4f2dd5a90c455b2be (diff) |
media: i2c: imx258: 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>
Diffstat (limited to 'fs/freevxfs')
0 files changed, 0 insertions, 0 deletions