Thread (15 messages) 15 messages, 4 authors, 2013-12-26
STALE4539d
Revisions (2)
  1. v1 [diff vs current]
  2. v1 current

Re: [PATCH 2/5] input: sun4i-ts: Add support for temperature sensor

From: Thomas Petazzoni <hidden>
Date: 2013-12-26 08:39:35
Also in: linux-arm-kernel

Dear Hans de Goede,

On Tue, 24 Dec 2013 23:24:04 +0100, Hans de Goede wrote:
+	of_property_read_u32(np, "ts-attached", &ts_attached);
ts-attached should be a boolean property, and therefore you should use
of_property_read_bool() here.

And in your Device Tree, you should use:

	ts-attached;

when a touchscreen is attached. And nothing when no touchscreen is
attached.

Note that this patch is also changing the DT binding, so it should
update the DT binding documentation created in the first patch.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help