Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/light/
H A Dtsl2563.c42 #define CALIB_BASE_SYSFS 1000 macro
359 return (int)DIV_ROUND_CLOSEST(calib * CALIB_BASE_SYSFS, BIT(CALIB_FRAC_BITS)); in tsl2563_calib_to_sysfs()
365 return (((u32) value) << CALIB_FRAC_BITS) / CALIB_BASE_SYSFS; in tsl2563_calib_from_sysfs()
728 chip->calib0 = tsl2563_calib_from_sysfs(CALIB_BASE_SYSFS); in tsl2563_probe()
729 chip->calib1 = tsl2563_calib_from_sysfs(CALIB_BASE_SYSFS); in tsl2563_probe()