[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231027133818.f5zpeqxfw7ghs7sk@pengutronix.de>
Date: Fri, 27 Oct 2023 15:38:18 +0200
From: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
To: Sean Young <sean@...s.org>
Cc: linux-media@...r.kernel.org, linux-pwm@...r.kernel.org,
Ivaylo Dimitrov <ivo.g.dimitrov.75@...il.com>,
Thierry Reding <thierry.reding@...il.com>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@...adcom.com>,
Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 3/4] pwm: bcm2835: allow pwm driver to be used in
atomic context
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/ |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists