Go to the documentation of this file.
25 #ifndef __SMIAPP_QUIRK__
26 #define __SMIAPP_QUIRK__
49 #define SMIAPP_QUIRK_FLAG_OP_PIX_CLOCK_PER_LANE (1 << 0)
50 #define SMIAPP_QUIRK_FLAG_8BIT_READ_ONLY (1 << 1)
62 #define SMIAPP_MK_QUIRK_REG(_reg, _val) \
64 .type = (_reg >> 16), \
69 #define smiapp_call_quirk(_sensor, _quirk, ...) \
70 (_sensor->minfo.quirk && \
71 _sensor->minfo.quirk->_quirk ? \
72 _sensor->minfo.quirk->_quirk(_sensor, ##__VA_ARGS__) : 0)
74 #define smiapp_needs_quirk(_sensor, _quirk) \
75 (_sensor->minfo.quirk ? \
76 _sensor->minfo.quirk->flags & _quirk : 0)