[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VfKXe-7pzPT=9N3r20YV5Sq1UyHPoYwoLL1L4mjt8cEUA@mail.gmail.com>
Date: Tue, 20 Feb 2018 16:12:59 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Moritz Fischer <mdf@...nel.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
devicetree <devicetree@...r.kernel.org>,
Linux PM <linux-pm@...r.kernel.org>,
Sebastian Reichel <sre@...nel.org>
Subject: Re: [PATCH v2 2/2] power: reset: gpio-poweroff: Add support for
timeout from DT
On Tue, Feb 20, 2018 at 12:59 AM, Moritz Fischer <mdf@...nel.org> wrote:
> Add support for reading a timeout value from devicetree.
> Fall back to previous default of 3s if nothing is specified.
> + of_property_read_u32(pdev->dev.of_node, "timeout_ms", &timeout);
Perhaps stop being OF-centric by using device_property_read_u32() instead?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists