diff options
| author | Ezequiel Garcia <[email protected]> | 2021-01-18 01:52:51 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-02-06 07:44:00 +0000 |
| commit | 50fe0de0fedbc259eb79951f6912b78795dcaeaa (patch) | |
| tree | 8b2458213d9169005e121bed9cfa81f6c864636f /drivers/media/v4l2-core/v4l2-async.c | |
| parent | media: cadence: Use v4l2_async_notifier_add_fwnode_remote_subdev (diff) | |
| download | kernel-50fe0de0fedbc259eb79951f6912b78795dcaeaa.tar.gz kernel-50fe0de0fedbc259eb79951f6912b78795dcaeaa.zip | |
media: marvell-ccic: Use v4l2_async_notifier_add_*_subdev
The use of v4l2_async_notifier_add_subdev will be discouraged.
Drivers are instead encouraged to use a helper such as
v4l2_async_notifier_add_fwnode_remote_subdev.
This fixes a misuse of the API, as v4l2_async_notifier_add_subdev
should get a kmalloc'ed struct v4l2_async_subdev,
removing some boilerplate code while at it.
Use the appropriate helper: v4l2_async_notifier_add_i2c_subdev
or v4l2_async_notifier_add_fwnode_remote_subdev, which handles
the needed setup, instead of open-coding it.
Signed-off-by: Ezequiel Garcia <[email protected]>
Reviewed-by: Jacopo Mondi <[email protected]>
Reviewed-by: Helen Koike <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
0 files changed, 0 insertions, 0 deletions
