Searched refs:als_attr (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/iio/light/ |
H A D | lm3533-als.c | 509 struct lm3533_als_attribute *als_attr = to_lm3533_als_attr(attr); show_als_attr() local 513 switch (als_attr->type) { show_als_attr() 515 ret = lm3533_als_get_hysteresis(indio_dev, als_attr->val1, show_als_attr() 519 ret = lm3533_als_get_target(indio_dev, als_attr->val1, show_als_attr() 520 als_attr->val2, &val); show_als_attr() 523 ret = lm3533_als_get_threshold(indio_dev, als_attr->val1, show_als_attr() 527 ret = lm3533_als_get_threshold(indio_dev, als_attr->val1, show_als_attr() 545 struct lm3533_als_attribute *als_attr = to_lm3533_als_attr(attr); store_als_attr() local 552 switch (als_attr->type) { store_als_attr() 554 ret = lm3533_als_set_target(indio_dev, als_attr->val1, store_als_attr() 555 als_attr->val2, val); store_als_attr() 558 ret = lm3533_als_set_threshold(indio_dev, als_attr->val1, store_als_attr() 562 ret = lm3533_als_set_threshold(indio_dev, als_attr->val1, store_als_attr()
|
Completed in 134 milliseconds