Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
smiapp-quirk.h File Reference

Go to the source code of this file.

Data Structures

struct  smiapp_quirk
 
struct  smiapp_reg_8
 

Macros

#define SMIAPP_QUIRK_FLAG_OP_PIX_CLOCK_PER_LANE   (1 << 0)
 
#define SMIAPP_QUIRK_FLAG_8BIT_READ_ONLY   (1 << 1)
 
#define SMIAPP_MK_QUIRK_REG(_reg, _val)
 
#define smiapp_call_quirk(_sensor, _quirk,...)
 
#define smiapp_needs_quirk(_sensor, _quirk)
 

Functions

void smiapp_replace_limit (struct smiapp_sensor *sensor, u32 limit, u32 val)
 
bool smiapp_quirk_reg (struct smiapp_sensor *sensor, u32 reg, u32 *val)
 

Variables

struct smiapp_quirk smiapp_jt8ev1_quirk
 
struct smiapp_quirk smiapp_imx125es_quirk
 
struct smiapp_quirk smiapp_jt8ew9_quirk
 
struct smiapp_quirk smiapp_tcm8500md_quirk
 

Macro Definition Documentation

#define smiapp_call_quirk (   _sensor,
  _quirk,
  ... 
)
Value:
(_sensor->minfo.quirk && \
_sensor->minfo.quirk->_quirk ? \
_sensor->minfo.quirk->_quirk(_sensor, ##__VA_ARGS__) : 0)

Definition at line 69 of file smiapp-quirk.h.

#define SMIAPP_MK_QUIRK_REG (   _reg,
  _val 
)
Value:
{ \
.type = (_reg >> 16), \
.reg = (u16)_reg, \
.val = _val, \
}

Definition at line 62 of file smiapp-quirk.h.

#define smiapp_needs_quirk (   _sensor,
  _quirk 
)
Value:
(_sensor->minfo.quirk ? \
_sensor->minfo.quirk->flags & _quirk : 0)

Definition at line 74 of file smiapp-quirk.h.

#define SMIAPP_QUIRK_FLAG_8BIT_READ_ONLY   (1 << 1)

Definition at line 50 of file smiapp-quirk.h.

#define SMIAPP_QUIRK_FLAG_OP_PIX_CLOCK_PER_LANE   (1 << 0)

Definition at line 49 of file smiapp-quirk.h.

Function Documentation

bool smiapp_quirk_reg ( struct smiapp_sensor sensor,
u32  reg,
u32 val 
)

Definition at line 64 of file smiapp-quirk.c.

void smiapp_replace_limit ( struct smiapp_sensor sensor,
u32  limit,
u32  val 
)

Definition at line 53 of file smiapp-quirk.c.

Variable Documentation

struct smiapp_quirk smiapp_imx125es_quirk

Definition at line 183 of file smiapp-quirk.c.

struct smiapp_quirk smiapp_jt8ev1_quirk

Definition at line 269 of file smiapp-quirk.c.

struct smiapp_quirk smiapp_jt8ew9_quirk

Definition at line 162 of file smiapp-quirk.c.

struct smiapp_quirk smiapp_tcm8500md_quirk

Definition at line 284 of file smiapp-quirk.c.