media: v4l2-fwnode: Make bus configuration a struct
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 8 Sep 2020 08:20:28 +0000 (10:20 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 10 Sep 2020 12:28:22 +0000 (14:28 +0200)
commitbb4bba9232fc90f173a2215035334ceec0457f2f
tree721ddcf1fca76f93ff8b4d9bb0f584015bd58bae
parent2e654432a260d968cd505898e1c056ce6ab63c31
media: v4l2-fwnode: Make bus configuration a struct

The bus specific parameters were a union. This made providing bus specific
defaults impossible as the memory used to store the defaults for multiple
different busses was the same.

Make it struct instead. It's not large so the size isn't really an issue.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
include/media/v4l2-fwnode.h