Skip to content

Commit 1d3f7a3

Browse files
committed
platform/x86: x86-android-tablets: Add "yogabook-touch-kbd-digitizer-switch" pdev for Lenovo Yoga Book
Add a "yogabook-touch-kbd-digitizer-switch" platform-device, for the lenovo-yogabook driver to bind to, to the x86_dev_info for the Lenovo Yoga Book 1 Android models (yb1-x90f/l). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230416212841.311152-3-hdegoede@redhat.com
1 parent 95b829f commit 1d3f7a3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • drivers/platform/x86/x86-android-tablets

drivers/platform/x86/x86-android-tablets/lenovo.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ static const struct x86_i2c_client_info lenovo_yb1_x90_i2c_clients[] __initconst
140140
},
141141
};
142142

143+
static const struct platform_device_info lenovo_yb1_x90_pdevs[] __initconst = {
144+
{
145+
.name = "yogabook-touch-kbd-digitizer-switch",
146+
.id = PLATFORM_DEVID_NONE,
147+
},
148+
};
149+
143150
static struct gpiod_lookup_table lenovo_yb1_x90_goodix_gpios = {
144151
.dev_id = "i2c-goodix_ts",
145152
.table = {
@@ -194,6 +201,8 @@ static int __init lenovo_yb1_x90_init(void)
194201
const struct x86_dev_info lenovo_yogabook_x90_info __initconst = {
195202
.i2c_client_info = lenovo_yb1_x90_i2c_clients,
196203
.i2c_client_count = ARRAY_SIZE(lenovo_yb1_x90_i2c_clients),
204+
.pdev_info = lenovo_yb1_x90_pdevs,
205+
.pdev_count = ARRAY_SIZE(lenovo_yb1_x90_pdevs),
197206
.gpiod_lookup_tables = lenovo_yb1_x90_gpios,
198207
.init = lenovo_yb1_x90_init,
199208
};

0 commit comments

Comments
 (0)