Re: [PATCH v3 2/4] v4l: of: Instead of zeroing bus_type and bus field separately, unify this

2015-04-08 Thread Sakari Ailus
On Tue, Apr 07, 2015 at 12:47:56PM +0300, Laurent Pinchart wrote: Hello Sakari, Thank you for the patch. On Tuesday 07 April 2015 01:57:30 Sakari Ailus wrote: Clean the entire struct starting from bus_type. As more fields are added, no changes will be needed in the function to reset

Re: [PATCH v3 2/4] v4l: of: Instead of zeroing bus_type and bus field separately, unify this

2015-04-07 Thread Laurent Pinchart
Hello Sakari, Thank you for the patch. On Tuesday 07 April 2015 01:57:30 Sakari Ailus wrote: Clean 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. I would s/Clean/Clear/ or s/Clean/Zero/. Same for

[PATCH v3 2/4] v4l: of: Instead of zeroing bus_type and bus field separately, unify this

2015-04-06 Thread Sakari Ailus
Clean 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.ai...@iki.fi --- drivers/media/v4l2-core/v4l2-of.c |5 +++-- include/media/v4l2-of.h |1 + 2