Thread (5 messages) 5 messages, 3 authors, 2018-02-20

Re: [PATCH v2 2/2] power: reset: gpio-poweroff: Add support for timeout from DT

flat view

From: Moritz Fischer <mdf@kernel.org>
Date: 2018-02-20 16:46:11
Also in: lkml

On Tue, Feb 20, 2018 at 04:12:59PM +0200, Andy Shevchenko wrote:
On Tue, Feb 20, 2018 at 12:59 AM, Moritz Fischer [off-list ref] wrote:
quoted
Add support for reading a timeout value from devicetree.
Fall back to previous default of 3s if nothing is specified.
quoted
+       of_property_read_u32(pdev->dev.of_node, "timeout_ms", &timeout);
Perhaps stop being OF-centric by using device_property_read_u32() instead?
Good catch, will do. Should probably change commit message accordingly,
too.

Thanks,

Moritz

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help