]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cec: pass parent device in register(), not allocate()
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 25 Nov 2016 08:23:34 +0000 (06:23 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 29 Nov 2016 14:07:17 +0000 (12:07 -0200)
commit075fab80804559156fcb805c25d630786df12237
treecc8711c8323e5ff7fb69599b7dc2aa88c9fd438e
parent5bcc854ea6a86b59209f6885104e479e4b812dc8
[media] cec: pass parent device in register(), not allocate()

The cec_allocate_adapter function doesn't need the parent device, only the
cec_register_adapter function needs it.

Drop the cec_devnode parent field, since devnode.dev.parent can be used
instead.

This change makes the framework consistent with other frameworks where the
parent device is not used until the device is registered.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
13 files changed:
Documentation/media/kapi/cec-core.rst
drivers/media/cec/cec-api.c
drivers/media/cec/cec-core.c
drivers/media/i2c/adv7511.c
drivers/media/i2c/adv7604.c
drivers/media/i2c/adv7842.c
drivers/media/platform/vivid/vivid-cec.c
drivers/media/platform/vivid/vivid-cec.h
drivers/media/platform/vivid/vivid-core.c
drivers/media/usb/pulse8-cec/pulse8-cec.c
drivers/staging/media/s5p-cec/s5p_cec.c
drivers/staging/media/st-cec/stih-cec.c
include/media/cec.h