Thread (11 messages) 11 messages, 2 authors, 2021-09-28

Re: [PATCH 6/9] iio: adc: meson_saradc: Make use of the helper function dev_err_probe()

From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Date: 2021-09-27 20:10:02
Also in: linux-amlogic, linux-iio, lkml

Hello,

first of all: thanks for this patch!

On Mon, Sep 27, 2021 at 10:15 AM Cai Huoqing [off-list ref] wrote:
[...]
+       if (IS_ERR(priv->clkin))
+               return dev_err_probe(&pdev->dev,
+                                    PTR_ERR(priv->clkin),
Is there any specific reason why you put PTR_ERR() on a separate line?
it would still fit into the line above and be below the old 80 chars
per line limit.
For priv->vref you already have it the way I am suggesting there.

[...]
+       if (IS_ERR(priv->core_clk))
+               return dev_err_probe(&pdev->dev,
+                                    PTR_ERR(priv->core_clk),
the same question as above applies here as well


Best regards,
Martin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help