[media] v4l: vsp1: Group DRM RPF parameters in a structure
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 23 Apr 2016 22:08:59 +0000 (19:08 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 17 Jun 2016 11:16:16 +0000 (08:16 -0300)
commitc6b013ab517b0ae09036d50f6b1684d9dbedf596
treede8cd068c7b1bbdfdbad6f0c6b3c81e83f400270
parent0c1a41b50805464f397a334a6b2dd95ca6415f32
[media] v4l: vsp1: Group DRM RPF parameters in a structure

The vsp1_du_atomic_update_ext() function takes 7 RPF configuration
parameters, and more will likely be added later. This makes the code
difficult to read and error-prone as multiple parameters have the same
type.

Make the API safer and easier to extend in the future by grouping all
parameters in a structure. Use macro magic to ease the transition to the
new function by allowing the old and new functions to be called using
the same name. The macros and static inline wrapper will be removed as
soon as the caller is updated.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vsp1/vsp1_drm.c
include/media/vsp1.h
This page took 0.02622 seconds and 5 git commands to generate.