Skip to content

Commit

Permalink
media: ti-vpe: cal: Move CAL I/O accessors to cal.h
Browse files Browse the repository at this point in the history
To prepare for the split of the camerarx code to a separate file, move
the CAL I/O accessors to cal.h. This requires renaming the accessors
with a cal_prefix, as the current names are too generic and prone to
namespace clashes.

The reg_read() and read_write() macros, that cover both CAL and CAMERARX
register access, are split in two groups of inline functions, one for
CAL access and one for CAMERARX access.

Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Benoit Parrot <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
pinchartl authored and sigmaris committed Aug 8, 2020
1 parent 22b9e72 commit 5e3236b
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 150 deletions.
1 change: 0 additions & 1 deletion drivers/media/platform/ti-vpe/cal-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Laurent Pinchart <[email protected]>
*/

#include <linux/bitfield.h>
#include <linux/delay.h>
#include <linux/ioctl.h>
#include <linux/pm_runtime.h>
Expand Down
Loading

0 comments on commit 5e3236b

Please sign in to comment.