Re: [PATCH V2 2/4] thermal: Add BCM2711 thermal driver
From: Nicolas Saenz Julienne <hidden>
Date: 2020-01-07 11:28:30
Also in:
linux-devicetree, linux-pm
From: Nicolas Saenz Julienne <hidden>
Date: 2020-01-07 11:28:30
Also in:
linux-devicetree, linux-pm
On Mon, 2020-01-06 at 14:30 -0800, Florian Fainelli wrote:
Hi Stefan, On 1/3/20 9:23 AM, Stefan Wahren wrote:quoted
This adds the thermal sensor driver for the Broadcom BCM2711 SoC, which is placed on the Raspberry Pi 4. The driver only provides SoC temperature reading so far. Signed-off-by: Stefan Wahren <wahrenst@gmx.net>This looks good, I just have a couple of nits that you can address since the binding needs to be re-spun, see below, in any case: Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> [snip]quoted
+ of_node_put(parent); + if (IS_ERR(regmap)) { + dev_err(dev, "failed to get regmap (error %ld)\n", + PTR_ERR(regmap));Here we use %ldquoted
+ return PTR_ERR(regmap); + } + priv->regmap = regmap; + priv->dev = dev; + + thermal = devm_thermal_zone_of_sensor_register(dev, 0, priv, + &bcm2711_thermal_of_ops); + if (IS_ERR(thermal)) { + ret = PTR_ERR(thermal); + dev_err(dev, "could not register sensor: %d\n", ret);and here we do an implicit cast into int, thus using %d, could we just make both consistent and use %d?
Extra nit since you're changing this. I'd suggest keeping the same format between error messages (i.e. one encloses the error message between parentheses and the other uses a colon). Regards, Nicolas