Thread (15 messages) 15 messages, 6 authors, 2016-03-17

[rtc-linux] Re: [PATCH 4/5] rtc: jz4740_rtc: Add support for acting as the system power controller

From: Alexandre Belloni <hidden>
Date: 2016-03-17 12:21:04
Also in: linux-devicetree, linux-mips, lkml

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

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help