mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Hans de Goede <hansg@kernel.org>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Arnd Bergmann" <arnd@kernel.org>,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 02/11] platform/x86: x86-android-tablets: convert Wacom devices to GPIO references
Date: Sun, 10 Aug 2025 19:22:48 -0700	[thread overview]
Message-ID: <20250810-x86-andoroid-tablet-v2-2-9c7a1b3c32b2@gmail.com> (raw)
In-Reply-To: <20250810-x86-andoroid-tablet-v2-0-9c7a1b3c32b2@gmail.com>

Now that gpiolib supports software nodes to describe GPIOs, switch the
driver away from using GPIO lookup tables for Wacom touchscreens to using
PROPERTY_ENTRY_GPIO() to keep all touchscreen properties together.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/platform/x86/x86-android-tablets/lenovo.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/platform/x86/x86-android-tablets/lenovo.c b/drivers/platform/x86/x86-android-tablets/lenovo.c
index 22fe76ef5b5a..f8d261d37284 100644
--- a/drivers/platform/x86/x86-android-tablets/lenovo.c
+++ b/drivers/platform/x86/x86-android-tablets/lenovo.c
@@ -75,6 +75,7 @@ static const struct software_node lenovo_yb1_x90_goodix_node = {
 static const struct property_entry lenovo_yb1_x90_wacom_props[] = {
 	PROPERTY_ENTRY_U32("hid-descr-addr", 0x0001),
 	PROPERTY_ENTRY_U32("post-reset-deassert-delay-ms", 150),
+	PROPERTY_ENTRY_GPIO("reset-gpios", &cherryview_gpiochip_nodes[0], 82, GPIO_ACTIVE_LOW),
 	{ }
 };
 
@@ -218,17 +219,8 @@ static struct gpiod_lookup_table lenovo_yb1_x90_hideep_gpios = {
 	},
 };
 
-static struct gpiod_lookup_table lenovo_yb1_x90_wacom_gpios = {
-	.dev_id = "i2c-wacom",
-	.table = {
-		GPIO_LOOKUP("INT33FF:00", 82, "reset", GPIO_ACTIVE_LOW),
-		{ }
-	},
-};
-
 static struct gpiod_lookup_table * const lenovo_yb1_x90_gpios[] = {
 	&lenovo_yb1_x90_hideep_gpios,
-	&lenovo_yb1_x90_wacom_gpios,
 	NULL
 };
 

-- 
2.51.0.rc0.155.g4a0f42376b-goog


  parent reply	other threads:[~2025-08-11  2:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-11  2:22 [PATCH v2 00/11] x86-android-tablets: convert to use " Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 01/11] platform/x86: x86-android-tablets: convert Goodix devices to " Dmitry Torokhov
2025-08-11 10:09   ` Hans de Goede
2025-08-11 16:01     ` Dmitry Torokhov
2025-08-11 17:45       ` Hans de Goede
2025-08-11  2:22 ` Dmitry Torokhov [this message]
2025-08-11  2:22 ` [PATCH v2 03/11] platform/x86: x86-android-tablets: convert HiDeep " Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 04/11] platform/x86: x86-android-tablets: convert Novatek " Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 05/11] platform/x86: x86-android-tablets: convert EDT " Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 06/11] platform/x86: x86-android-tablets: convert int3496 " Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 07/11] platform/x86: x86-android-tablets: convert wm1502 " Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 08/11] platform/x86: x86-android-tablets: convert HID-I2C " Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 09/11] platform/x86: x86-android-tablets: convert Yoga Tab2 fast charger " Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 10/11] platform/x86: x86-android-tablets: remove support for GPIO lookup tables Dmitry Torokhov
2025-08-11  2:22 ` [PATCH v2 11/11] platform/x86: x86-android-tablets: convert gpio_keys devices to GPIO references Dmitry Torokhov
2025-08-11  9:41 ` [PATCH v2 00/11] x86-android-tablets: convert to use " Hans de Goede
2025-08-11 16:03   ` Dmitry Torokhov
2025-09-19 19:53 ` Hans de Goede
2025-09-19 21:21   ` Dmitry Torokhov
2025-09-20 12:53     ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250810-x86-andoroid-tablet-v2-2-9c7a1b3c32b2@gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=arnd@kernel.org \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®