Lines Matching refs:stk8312_set_mode
170 static int stk8312_set_mode(struct stk8312_data *data, u8 mode) in stk8312_set_mode() function
202 ret = stk8312_set_mode(data, STK8312_MODE_STANDBY); in stk8312_set_interrupts()
209 stk8312_set_mode(data, mode); in stk8312_set_interrupts()
213 return stk8312_set_mode(data, mode); in stk8312_set_interrupts()
254 ret = stk8312_set_mode(data, STK8312_MODE_STANDBY); in stk8312_set_sample_rate()
270 return stk8312_set_mode(data, mode); in stk8312_set_sample_rate()
274 stk8312_set_mode(data, mode); in stk8312_set_sample_rate()
293 ret = stk8312_set_mode(data, STK8312_MODE_STANDBY); in stk8312_set_range()
310 return stk8312_set_mode(data, mode); in stk8312_set_range()
314 stk8312_set_mode(data, mode); in stk8312_set_range()
346 ret = stk8312_set_mode(data, data->mode | STK8312_MODE_ACTIVE); in stk8312_read_raw()
353 stk8312_set_mode(data, in stk8312_read_raw()
359 ret = stk8312_set_mode(data, in stk8312_read_raw()
486 return stk8312_set_mode(data, data->mode | STK8312_MODE_ACTIVE); in stk8312_buffer_preenable()
493 return stk8312_set_mode(data, data->mode & (~STK8312_MODE_ACTIVE)); in stk8312_buffer_postdisable()
535 ret = stk8312_set_mode(data, in stk8312_probe()
595 stk8312_set_mode(data, STK8312_MODE_STANDBY); in stk8312_probe()
610 stk8312_set_mode(data, STK8312_MODE_STANDBY); in stk8312_remove()
619 return stk8312_set_mode(data, data->mode & (~STK8312_MODE_ACTIVE)); in stk8312_suspend()
628 return stk8312_set_mode(data, data->mode | STK8312_MODE_ACTIVE); in stk8312_resume()