Thread (4 messages) 4 messages, 3 authors, 2012-11-21

Re: [PATCH 1/1] input: added driver support for the t5400 pressure sensor.

From: Arnd Bergmann <arnd@arndb.de>
Date: 2012-11-20 21:21:45

On Tuesday 20 November 2012, Stefan Nilsson wrote:
quoted hunk ↗ jump to hunk
+Optional properties:
+- gpio-irq: platform gpio pin connected to the t5400 irq pin
+- op-mode: operation modes to be set according to enum t5400_op_mode in t5400.h
+
+Example of having the t5400 on an i2c bus:
+
+pressure@77 {
+       compatible = "tdk-epcos,t5400";
+       reg = <0x77>;
+       gpio-irq = <18>;
+       op-mode = <1>;
The way that the "gpio-irq" is specified doesn't look right. If you want to specify
a gpio line, use the gpio binding. If you just want to specify an interrupt, use the
"interrupts" property with a proper interrupt-parent.
+       int gpio-irq;
...
+       if (t5400->gpio-irq > 0) {
+               error = request_threaded_irq(t5400->gpio-irq, NULL,

I'm pretty sure this doesn't even compile. '-' is not part of an identifier in C.

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