diff options
author | Sakari Ailus | 2015-03-22 17:42:31 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab | 2015-04-27 15:43:52 -0300 |
commit | 161aadaec11cd0f610950da56f82bd1778be4156 (patch) | |
tree | 088644cb9a61faa0648f3591442d500be4aad606 /include | |
parent | 2b5166efda83259fe1d98424a7875293718ec22e (diff) |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/v4l2-of.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/v4l2-of.h b/include/media/v4l2-of.h index f66b92cc8669..6c85c079544f 100644 --- a/include/media/v4l2-of.h +++ b/include/media/v4l2-of.h @@ -60,6 +60,7 @@ struct v4l2_of_bus_parallel { */ struct v4l2_of_endpoint { struct of_endpoint base; + /* Fields below this line will be zeroed by v4l2_of_parse_endpoint() */ enum v4l2_mbus_type bus_type; union { struct v4l2_of_bus_parallel parallel; |