Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/proximity/
H A Dsx9310.c390 static const unsigned int sx9310_pthresh_codes[] = { variable
425 if (regval >= ARRAY_SIZE(sx9310_pthresh_codes)) in sx9310_read_thresh()
428 *val = sx9310_pthresh_codes[regval]; in sx9310_read_thresh()
533 for (i = 0; i < ARRAY_SIZE(sx9310_pthresh_codes); i++) { in sx9310_write_thresh()
534 if (sx9310_pthresh_codes[i] == val) { in sx9310_write_thresh()
540 if (i == ARRAY_SIZE(sx9310_pthresh_codes)) in sx9310_write_thresh()