Lines Matching refs:state
135 /* state */
707 int state)
712 state = !!state;
716 if (data->pxs_int == state)
719 ret = regmap_field_write(data->reg_int_pxs, state);
722 data->pxs_int = state;
723 apds9960_set_power_state(data, state);
726 if (data->als_int == state)
729 ret = regmap_field_write(data->reg_int_als, state);
732 data->als_int = state;
733 apds9960_set_power_state(data, state);
824 static int apds9960_set_powermode(struct apds9960_data *data, bool state)
826 return regmap_update_bits(data->regmap, APDS9960_REG_ENABLE, 1, state);