提交 b1f4c9a3 编写于 作者: P Philippe Schenker 提交者: Jonathan Cameron

iio: stmpe-adc: Remove unnecessary assignment

Remove unnecessary assignment. This could potentially cause an issue, if
the wait function runs into a timeout. Furthermore is this assignment also
not there in stmpe_read_temp()
Signed-off-by: NPhilippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
上级 c57c54bc
...@@ -78,8 +78,6 @@ static int stmpe_read_voltage(struct stmpe_adc *info, ...@@ -78,8 +78,6 @@ static int stmpe_read_voltage(struct stmpe_adc *info,
stmpe_reg_write(info->stmpe, STMPE_REG_ADC_CAPT, stmpe_reg_write(info->stmpe, STMPE_REG_ADC_CAPT,
STMPE_ADC_CH(info->channel)); STMPE_ADC_CH(info->channel));
*val = info->value;
ret = wait_for_completion_interruptible_timeout ret = wait_for_completion_interruptible_timeout
(&info->completion, STMPE_ADC_TIMEOUT); (&info->completion, STMPE_ADC_TIMEOUT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册