OSDN Git Service

[media] media: au0828 - embed vdev and vbi_dev structs in au0828_dev
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 26 Feb 2015 22:33:13 +0000 (19:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Mar 2015 14:19:52 +0000 (11:19 -0300)
commit41071bb8c78e4d0b36c51c71b6620d74cb7e2ceb
tree3846c4fc407ef67b9607f4111db3d8feb3a4b20c
parentc5036d61e0bed3f4f51391a145638b426825e69c
[media] media: au0828 - embed vdev and vbi_dev structs in au0828_dev

Embed video_device structs vdev and vbi_dev in au0828_dev.
With this change, dynamic allocation and error path logic
in au0828_analog_register() is removed as it doesn't need
to allocate and handle allocation errors. Unregister path
doesn't need to free the now static video_device structures,
hence, changed video_device.release in au0828_video_template
to point to video_device_release_empty.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/au0828/au0828-video.c
drivers/media/usb/au0828/au0828.h