Home
last modified time | relevance | path

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

/openbmc/linux/drivers/misc/
H A 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()
449 return (iac * lpc) / APDS_PARAM_SCALE; in apds990x_get_lux()
1090 (chip->cf.irf1 - chip->cf.irf2) * APDS_PARAM_SCALE / in apds990x_probe()
1092 chip->rcf.cf1 = APDS_PARAM_SCALE * APDS_PARAM_SCALE / in apds990x_probe()
1094 chip->rcf.irf1 = chip->cf.irf1 * APDS_PARAM_SCALE / in apds990x_probe()
1096 chip->rcf.cf2 = APDS_PARAM_SCALE * APDS_PARAM_SCALE / in apds990x_probe()
[all …]
/openbmc/linux/include/linux/platform_data/
H A Dapds990x.h34 #define APDS_PARAM_SCALE 4096 macro