Thread (14 messages) 14 messages, 2 authors, 2021-03-21

Re: [PATCH v3 6/9] Input: wacom_i2c - Clean up the query device fields

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2021-03-21 20:11:41
Also in: lkml

On Sun, Mar 21, 2021 at 10:10:46AM -0400, Alistair Francis wrote:
Improve the query device fields to be more verbose.

Signed-off-by: Alistair Francis <redacted>
---
 drivers/input/touchscreen/wacom_i2c.c | 71 +++++++++++++++++++--------
...
 
+	rstc = devm_reset_control_get_optional_exclusive(&client->dev, NULL);
+	if (IS_ERR(rstc))
+		dev_err(&client->dev, "Failed to get reset control before init\n");
+	else
+		reset_control_reset(rstc);
This seems misplaced. Also, reset controls are typically for resetting
the system, for resetting peripherals we expose reset GPIO lines.

Thanks.

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