Lines Matching defs:bh1770_chip
120 struct bh1770_chip { struct
121 struct bh1770_platform_data *pdata;
122 char chipname[10];
123 u8 revision;
124 struct i2c_client *client;
125 struct regulator_bulk_data regs[2];
126 struct mutex mutex; /* avoid parallel access */
127 wait_queue_head_t wait;
129 bool int_mode_prox;
130 bool int_mode_lux;
131 struct delayed_work prox_work;
132 u32 lux_cf; /* Chip specific factor */
133 u32 lux_ga;
134 u32 lux_calib;
135 int lux_rate_index;
136 u32 lux_corr;
137 u16 lux_data_raw;
138 u16 lux_threshold_hi;
139 u16 lux_threshold_lo;
140 u16 lux_thres_hi_onchip;
141 u16 lux_thres_lo_onchip;
142 bool lux_wait_result;
144 int prox_enable_count;
145 u16 prox_coef;
146 u16 prox_const;
147 int prox_rate;
148 int prox_rate_threshold;
149 u8 prox_persistence;
150 u8 prox_persistence_counter;
151 u8 prox_data;
152 u8 prox_threshold;
153 u8 prox_threshold_hw;
154 bool prox_force_update;
155 u8 prox_abs_thres;
179 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, in bh1770_lux_interrupt_control() argument