[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190515131154.18373-4-benjamin.gaignard@st.com>
Date: Wed, 15 May 2019 15:11:52 +0200
From: Benjamin Gaignard <benjamin.gaignard@...com>
To: <rafael.j.wysocki@...el.com>, <dmitry.torokhov@...il.com>,
<robh+dt@...nel.org>, <mark.rutland@....com>, <hadess@...ess.net>,
<frowand.list@...il.com>, <m.felsch@...gutronix.de>,
<agx@...xcpu.org>, <arnd@...db.de>
CC: <linux-input@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
<linux-stm32@...md-mailman.stormreply.com>, <broonie@...nel.org>,
Benjamin Gaignard <benjamin.gaignard@...com>
Subject: [PATCH v2 3/5] input: edt-ft5x06 - Call of_device_links_add() to create links
Add a call to of_device_links_add() to create links with suspend
dependencies at probe time.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@...com>
---
drivers/input/touchscreen/edt-ft5x06.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c
index 702bfda7ee77..65053be10d4e 100644
--- a/drivers/input/touchscreen/edt-ft5x06.c
+++ b/drivers/input/touchscreen/edt-ft5x06.c
@@ -1167,6 +1167,8 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client,
i2c_set_clientdata(client, tsdata);
+ of_device_links_add(&client->dev);
+
irq_flags = irq_get_trigger_type(client->irq);
if (irq_flags == IRQF_TRIGGER_NONE)
irq_flags = IRQF_TRIGGER_FALLING;
--
2.15.0
Powered by blists - more mailing lists