]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: of: Instead of zeroing bus_type and bus field separately, unify this
authorSakari Ailus <sakari.ailus@iki.fi>
Sun, 22 Mar 2015 20:42:31 +0000 (17:42 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 27 Apr 2015 18:43:52 +0000 (15:43 -0300)
commit8dffddf44f1f9a4e253cb7303754a9de88734f6e
tree088644cb9a61faa0648f3591442d500be4aad606
parent8a9ebb78f4ed282ccc2a85a56662dbda6bc93b42
[media] v4l: of: Instead of zeroing bus_type and bus field separately, unify this

Zero the entire struct starting from bus_type. As more fields are added, no
changes will be needed in the function to reset their value explicitly.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-of.c
include/media/v4l2-of.h