[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160317122058.GE3362@piout.net>
Date: Thu, 17 Mar 2016 13:20:58 +0100
From: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
To: Paul Cercueil <paul@...pouillou.net>
Cc: Rob Herring <robh+dt@...nel.org>, Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Ralf Baechle <ralf@...ux-mips.org>,
Alessandro Zummo <a.zummo@...ertech.it>,
Paul Burton <paul.burton@...tec.com>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mips@...ux-mips.org, rtc-linux@...glegroups.com
Subject: Re: [PATCH 4/5] rtc: jz4740_rtc: Add support for acting as the
system power controller
On 05/03/2016 at 23:38:50 +0100, Paul Cercueil wrote :
> + if (of_device_is_system_power_controller(pdev->dev.of_node)) {
> + if (!pm_power_off) {
> + /* Default: 60ms */
> + rtc->reset_pin_assert_time = 60;
> + device_property_read_u32(&pdev->dev,
It is probably more efficient to use of_property_read_u32 directly. Any
particular reason to use device_property_read_u32?
> + } else {
> + dev_err(&pdev->dev,
> + "Poweroff handler already present!\n");
I'm not found of that alignement, it is probably better to let the
string go over 80 chars. checkpatch will not complain.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Powered by blists - more mailing lists