Commit e1bedd66 authored by Federico Vaga's avatar Federico Vaga

lib: zio generic flush support also FLUSH_F_ANY

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent ef2b93f6
......@@ -171,7 +171,7 @@ int adc_zio_acq_flush(struct adc_dev *dev, unsigned int flags)
{
struct __adc_dev_zio *fa = to_dev_zio(dev);
if (!(flags & ADC_FLUSH_F_SW)) {
if (!((flags & ADC_FLUSH_F_SW) || (flags == ADC_FLUSH_F_ANY))) {
errno = ADC_ENOFLAGS;
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment