Home
last modified time | relevance | path

Searched refs:APDS_PARAM_SCALE (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/misc/
Dapds990x.c278 APDS_PARAM_SCALE * 64) / (chip->cf.ga * chip->cf.df); in apds990x_lux_to_threshold()
293 if (chip->lux_clear * APDS_PARAM_SCALE >= in apds990x_lux_to_threshold()
296 APDS_PARAM_SCALE; in apds990x_lux_to_threshold()
299 APDS_PARAM_SCALE; in apds990x_lux_to_threshold()
440 iac1 = (chip->cf.cf1 * clear - chip->cf.irf1 * ir) / APDS_PARAM_SCALE; in apds990x_get_lux()
441 iac2 = (chip->cf.cf2 * clear - chip->cf.irf2 * ir) / APDS_PARAM_SCALE; in apds990x_get_lux()
449 return (iac * lpc) / APDS_PARAM_SCALE; in apds990x_get_lux()
1091 (chip->cf.irf1 - chip->cf.irf2) * APDS_PARAM_SCALE / in apds990x_probe()
1093 chip->rcf.cf1 = APDS_PARAM_SCALE * APDS_PARAM_SCALE / in apds990x_probe()
1095 chip->rcf.irf1 = chip->cf.irf1 * APDS_PARAM_SCALE / in apds990x_probe()
[all …]
/linux-5.19.10/include/linux/platform_data/
Dapds990x.h34 #define APDS_PARAM_SCALE 4096 macro