Searched refs:lux_scale (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/staging/iio/light/
H A Disl29028.c79 int lux_scale; member in struct:isl29028_chip
115 static int isl29028_set_als_scale(struct isl29028_chip *chip, int lux_scale) isl29028_set_als_scale() argument
117 int val = (lux_scale == 2000) ? CONFIGURE_ALS_RANGE_HIGH_LUX : isl29028_set_als_scale()
237 * if lux_scale = 125, lux = count * 0.031 isl29028_als_get()
238 * if lux_scale = 2000, lux = count * 0.49 isl29028_als_get()
240 if (chip->lux_scale == 125) isl29028_als_get()
314 chip->lux_scale = val; isl29028_write_raw()
363 *val = chip->lux_scale; isl29028_read_raw()
419 chip->lux_scale = 2000; isl29028_chip_init()
449 ret = isl29028_set_als_scale(chip, chip->lux_scale); isl29028_chip_init()
H A Disl29018.c74 unsigned int lux_scale; member in struct:isl29018_chip
172 lux_unshifted = data_x_range * chip->lux_scale; isl29018_read_lux()
361 chip->lux_scale = val; isl29018_write_raw()
407 *val = chip->lux_scale; isl29018_read_raw()
704 chip->lux_scale = 1; isl29018_probe()

Completed in 213 milliseconds