Lines Matching refs:val1
170 return val->val1 >= VEML7700_ALS_GAIN_1 && val->val1 <= VEML7700_ALS_GAIN_1_4; in veml7700_check_gain()
175 return val->val1 >= VEML7700_ALS_IT_25 && val->val1 <= VEML7700_ALS_IT_800; in veml7700_check_it()
180 return (val->val1 >= VEML7700_ALS_PERS_1 && val->val1 <= VEML7700_ALS_PERS_8) || in veml7700_check_int_mode()
181 val->val1 == VEML7700_INT_DISABLED; in veml7700_check_int_mode()
366 ret = veml7700_lux_to_counts(data, val->val1, &data->thresh_low); in veml7700_attr_set()
372 ret = veml7700_lux_to_counts(data, val->val1, &data->thresh_high); in veml7700_attr_set()
379 data->gain = (enum veml7700_als_gain)val->val1; in veml7700_attr_set()
386 data->it = (enum veml7700_als_it)val->val1; in veml7700_attr_set()
393 data->int_mode = (enum veml7700_int_mode)val->val1; in veml7700_attr_set()
413 val->val1 = data->thresh_low; in veml7700_attr_get()
415 val->val1 = data->thresh_high; in veml7700_attr_get()
417 val->val1 = data->gain; in veml7700_attr_get()
419 val->val1 = data->it; in veml7700_attr_get()
421 val->val1 = data->int_mode; in veml7700_attr_get()
501 val->val1 = data->als_lux; in veml7700_channel_get()
503 val->val1 = data->als_counts; in veml7700_channel_get()
505 val->val1 = data->white_counts; in veml7700_channel_get()
507 val->val1 = data->int_flags; in veml7700_channel_get()