OSDN Git Service

media: v4l2-fwnode: simplify v4l2_fwnode_reference_parse_int_props() call
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 4 Oct 2018 21:55:06 +0000 (17:55 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 5 Oct 2018 10:49:15 +0000 (06:49 -0400)
commitbe9c03e4120d42fcdb8debe3c6237629e51b8864
tree7d845c4265c4053f37b0f1bb3e4b162e4cdb029b
parentc1e630559f2636607c4ef094c061c67f302c4883
media: v4l2-fwnode: simplify v4l2_fwnode_reference_parse_int_props() call

The v4l2_fwnode_reference_parse_int_props() has a big name, causing
it to cause coding style warnings. Also, it depends on a const
struct embedded indide a function.

Rearrange the logic in order to move the struct declaration out
of such function and use it inside this function.

That cleans up some coding style issues.

Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-fwnode.c