On Tue, Apr 27, 2021 at 6:11 PM Sean Nyekjaer <sean@xxxxxxxxxx> wrote: > On 23/04/2021 14.51, Andy Shevchenko wrote: > >> + default: > >> + ret = -EINVAL; > >> + break; > > return -EINVAL; > > > >> + } > >> + > >> + iio_device_release_direct_mode(indio_dev); > Hi Andy, > > Thanks for the review :) > Will have to set ret in order to clear the direct_mode(); Right, thanks for clarifying! -- With Best Regards, Andy Shevchenko