On Thu, Jun 23, 2022 at 7:40 PM Marcus Folkesson <marcus.folkesson@xxxxxxxxx> wrote: > > Make it possible to read values upon interrupts. > Configure Data Ready Signal Output Pin to either HiZ or push-pull and > use it as interrupt source. ... > } > > + Unwanted blank line. > +static int mcp3911_set_trigger_state(struct iio_trigger *trig, bool enable) > +{ > + bool dr_hiz; As far as I can see you don't need this variable, just call if (device_property_...(...)). > + dr_hiz = device_property_read_bool(&adc->spi->dev, "microchip,data-ready-hiz"); > + if (dr_hiz) > + ret = mcp3911_update(adc, MCP3911_REG_STATUSCOM, MCP3911_STATUSCOM_DRHIZ, > + 0, 2); > + else > + ret = mcp3911_update(adc, MCP3911_REG_STATUSCOM, MCP3911_STATUSCOM_DRHIZ, > + MCP3911_STATUSCOM_DRHIZ, 2); > + Unneeded blank line. > + if (ret < 0) > + goto clk_disable; -- With Best Regards, Andy Shevchenko