Searched refs:APDS_PARAM_SCALE (Results 1 – 2 of 2) sorted by relevance
293 APDS_PARAM_SCALE * 64) / (chip->cf.ga * chip->cf.df); in apds990x_lux_to_threshold()308 if (chip->lux_clear * APDS_PARAM_SCALE >= in apds990x_lux_to_threshold()311 APDS_PARAM_SCALE; in apds990x_lux_to_threshold()314 APDS_PARAM_SCALE; in apds990x_lux_to_threshold()455 iac1 = (chip->cf.cf1 * clear - chip->cf.irf1 * ir) / APDS_PARAM_SCALE; in apds990x_get_lux()456 iac2 = (chip->cf.cf2 * clear - chip->cf.irf2 * ir) / APDS_PARAM_SCALE; in apds990x_get_lux()464 return (iac * lpc) / APDS_PARAM_SCALE; in apds990x_get_lux()1095 (chip->cf.irf1 - chip->cf.irf2) * APDS_PARAM_SCALE / in apds990x_probe()1097 chip->rcf.cf1 = APDS_PARAM_SCALE * APDS_PARAM_SCALE / in apds990x_probe()1099 chip->rcf.irf1 = chip->cf.irf1 * APDS_PARAM_SCALE / in apds990x_probe()[all …]
48 #define APDS_PARAM_SCALE 4096 macro