On Mon, Jul 4, 2022 at 7:22 PM Marcus Folkesson <marcus.folkesson@xxxxxxxxx> wrote: > > The chip supports oversampling ratio, so expose it to userspace. ... > + ret = mcp3911_read(adc, > + MCP3911_REG_CONFIG, val, 2); One line? > + if (ret) > + goto out; -- With Best Regards, Andy Shevchenko