lmp91000.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | lmp91000.c (f700e55ef6ef9ec723164659ed4385900981c872) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * lmp91000.c - Support for Texas Instruments digital potentiostats 4 * 5 * Copyright (C) 2016, 2018 6 * Author: Matt Ranostay <matt.ranostay@konsulko.com> 7 * 8 * TODO: bias voltage + polarity control, and multiple chip support --- 104 unchanged lines hidden (view full) --- 113 return -EINVAL; 114 115 /* delay till first temperature reading is complete */ 116 if (state != channel && channel == LMP91000_REG_MODECN_TEMP) 117 usleep_range(3000, 4000); 118 119 data->chan_select = channel != LMP91000_REG_MODECN_3LEAD; 120 | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * lmp91000.c - Support for Texas Instruments digital potentiostats 4 * 5 * Copyright (C) 2016, 2018 6 * Author: Matt Ranostay <matt.ranostay@konsulko.com> 7 * 8 * TODO: bias voltage + polarity control, and multiple chip support --- 104 unchanged lines hidden (view full) --- 113 return -EINVAL; 114 115 /* delay till first temperature reading is complete */ 116 if (state != channel && channel == LMP91000_REG_MODECN_TEMP) 117 usleep_range(3000, 4000); 118 119 data->chan_select = channel != LMP91000_REG_MODECN_3LEAD; 120 |
121 iio_trigger_poll_chained(data->trig); | 121 iio_trigger_poll_nested(data->trig); |
122 123 ret = wait_for_completion_timeout(&data->completion, HZ); 124 reinit_completion(&data->completion); 125 126 if (!ret) 127 return -ETIMEDOUT; 128 129 *val = data->buffer[data->chan_select]; --- 298 unchanged lines hidden --- | 122 123 ret = wait_for_completion_timeout(&data->completion, HZ); 124 reinit_completion(&data->completion); 125 126 if (!ret) 127 return -ETIMEDOUT; 128 129 *val = data->buffer[data->chan_select]; --- 298 unchanged lines hidden --- |