[PATCH v4 3/4] pwm: bcm2835: allow pwm driver to be used in atomic context
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Fri Oct 27 06:38:18 PDT 2023
Hello Sean,
On Fri, Oct 27, 2023 at 10:20:46AM +0100, Sean Young wrote:
> + pc->rate = clk_get_rate(pc->clk);
> + if (!pc->rate) {
> + dev_err(pc->dev, "failed to get clock rate\n");
> + ret = -EINVAL;
Other error paths in this driver use dev_err_probe(). The most compact
way here would be:
ret = dev_err_probe(pc->dev, -EINVAL, "....");
but maybe
ret = -EINVAL;
dev_err_probe(pc->dev, ret, "...");
is a bit easier to parse for a human?!
Otherwise looks reasonable.
Thanks,
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20231027/a59a64b8/attachment.sig>
More information about the linux-arm-kernel
mailing list