Commit e66a7c84 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: smiapp: Add macros for accessing CCS registers

Add two helper macros for reading and writing the CCS registers as defined
in ccs-regs.h.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent cb50351b
...@@ -28,4 +28,10 @@ int smiapp_write(struct smiapp_sensor *sensor, u32 reg, u32 val); ...@@ -28,4 +28,10 @@ int smiapp_write(struct smiapp_sensor *sensor, u32 reg, u32 val);
unsigned int ccs_reg_width(u32 reg); unsigned int ccs_reg_width(u32 reg);
#define ccs_read(sensor, reg_name, val) \
smiapp_read(sensor, CCS_R_##reg_name, val)
#define ccs_write(sensor, reg_name, val) \
smiapp_write(sensor, CCS_R_##reg_name, val)
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment