OSDN Git Service

media: v4l2-core: introduce a helper to unregister a i2c subdev
authorEzequiel Garcia <ezequiel@collabora.com>
Thu, 15 Aug 2019 16:48:05 +0000 (13:48 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 26 Aug 2019 13:52:06 +0000 (10:52 -0300)
commit51ff392c280733aa9e6bd47b3f5e83e32bfdf16a
treeb61a41e79f08d1a3a1fe26c0d5946f5faccbfe03
parenta9cff393c1d78ecbbc33e6196e79bb05ccb4a709
media: v4l2-core: introduce a helper to unregister a i2c subdev

Introduce a new video4linux2 i2c helper, to unregister a subdev.
This allows to get rid of yet another ifdef.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: fix checkpatch warning]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-device.c
drivers/media/v4l2-core/v4l2-i2c.c
include/media/v4l2-common.h