Thread (15 messages) 15 messages, 4 authors, 2017-01-09

Re: [PATCH v2 2/3] power: supply: bq24735-charger: optionally poll the ac-detect gpio

From: Sebastian Reichel <sre@kernel.org>
Date: 2016-12-14 15:10:36
Also in: linux-pm, lkml

Hi,

On Wed, Dec 14, 2016 at 12:56:44AM +0100, Peter Rosin wrote:
If the ac-detect gpio does not support interrupts, provide a fallback
to poll the gpio at a configurable interval.

Signed-off-by: Peter Rosin <redacted>
---

[...]

+	} else if (charger->status_gpio) {
+		ret = of_property_read_u32(client->dev.of_node,
+					   "poll-interval",
+					   &charger->poll_interval);
Please use device_property_read_u32() instead.
[...]
-- Sebastian

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