OSDN Git Service

[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)
commit161aadaec11cd0f610950da56f82bd1778be4156
tree088644cb9a61faa0648f3591442d500be4aad606
parent2b5166efda83259fe1d98424a7875293718ec22e
[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