diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2014-04-11 13:30:18 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-04-23 18:10:47 +0400 |
commit | 125a1c069651fd470f457aa95256903e195b176d (patch) | |
tree | ccd447ce7b01ef5c9f617df323a49720075fc195 /drivers/media/i2c | |
parent | b05cd219ec200c1c91d59011f8692d9b1c166fbc (diff) | |
download | linux-125a1c069651fd470f457aa95256903e195b176d.tar.xz |
[media] smiapp: Add a macro for constructing 8-bit quirk registers
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-quirk.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-quirk.h b/drivers/media/i2c/smiapp/smiapp-quirk.h index 4f65c4e0ec90..96a253e0f913 100644 --- a/drivers/media/i2c/smiapp/smiapp-quirk.h +++ b/drivers/media/i2c/smiapp/smiapp-quirk.h @@ -56,6 +56,12 @@ struct smiapp_reg_8 { void smiapp_replace_limit(struct smiapp_sensor *sensor, u32 limit, u32 val); +#define SMIAPP_MK_QUIRK_REG_8(_reg, _val) \ + { \ + .reg = (u16)_reg, \ + .val = _val, \ + } + #define smiapp_call_quirk(_sensor, _quirk, ...) \ (_sensor->minfo.quirk && \ _sensor->minfo.quirk->_quirk ? \ |