Lines Matching refs:raw
238 * Following two functions converts raw ps values from HW to normalized
255 u16 raw;
257 raw = (((u32)ps * BH1770_COEF_SCALER) / chip->prox_coef);
258 if (raw > chip->prox_const)
259 raw = raw - chip->prox_const;
261 raw = 0;
262 return raw;
266 * Following two functions converts raw lux values from HW to normalized
286 static inline u16 bh1770_lux_raw_to_adjusted(struct bh1770_chip *chip, u16 raw)
289 lux = ((u32)raw * chip->lux_corr) / BH1770_LUX_CORR_SCALE;