From nobody Sat Feb 7 13:41:29 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDA713148DA; Tue, 13 Jan 2026 07:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768289763; cv=none; b=SpmLw7GdwXHM4P1/75IEENvDnluJFFq/38FPRSewBRxpUkdePVOvDnKcrEJ5/lHJlDllQvMETkNBFdcaklyD3+2pKzyXI7Y/gBJg2aVmPs+uUxk3jZPRIRu+5IB/HbXc0UitOBGs55XIFVyK64xxOH5r0x5SJvGyuqLvkFhmBro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768289763; c=relaxed/simple; bh=K+qe+XhI83vj/6bO+RWRIFt0Wm4qiA8w38om6/KQybM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Elb8t7RSFmAW+AjQIq1DNbKQtHK7q1Ke0Y9Ud5mUUeZS+KL609w38dtyx46Sz9i6mh1QSK0eakQnzKoU6JxqGJvfgl7B5me2KWYLyPXh8W4eGATR0WyC74XlFEZUlf8UAY77eun4iGthVcwSjKvmgZCoBRwq4K3Kga/uhADrwdw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=er30FuJT; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="er30FuJT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1768289762; x=1799825762; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=K+qe+XhI83vj/6bO+RWRIFt0Wm4qiA8w38om6/KQybM=; b=er30FuJTsDLMWGJQJUZmJW88d+Orjp5dvzeNAiLLBBwQeR6AA9msGrCE JRB69mSswsFXoyqmfl1d5BlCxUpDEQwLKloX2wm/E9PzuDRwOKPCRk2Rb iS5qy+6gRfQeS7Ic6t5tHw5MHxyTseX/ut5FOo+PQmYWec4DHwixt0erY GkZuzCGELuT42PR4SadqIHwDgYV04QBV6zPpwOWpdYR/xr47Do71UHLHW w/CRtRviVlunhMD9gjsi1Mq+eKfRDaMOe3adFtQYjZZcQ9IcnGXkWZ1Gq 4cj3obcy+Z8UHBiMNCBjVHXbw4m0d7B+2TZ/3Ipky+2dkdc1UrpFkr/gD g==; X-CSE-ConnectionGUID: 9MKzYJFKQJSnwJqfSc0nXA== X-CSE-MsgGUID: rH/umoR1THmjAKN+kLv+vA== X-IronPort-AV: E=McAfee;i="6800,10657,11669"; a="86985059" X-IronPort-AV: E=Sophos;i="6.21,222,1763452800"; d="scan'208";a="86985059" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2026 23:36:01 -0800 X-CSE-ConnectionGUID: CeDsW4p5RnSX3qD8GBkWVw== X-CSE-MsgGUID: A0HMKFTYRC6vDr5rXM9EDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,222,1763452800"; d="scan'208";a="235557342" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa001.fm.intel.com with ESMTP; 12 Jan 2026 23:35:59 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id EB77E98; Tue, 13 Jan 2026 08:35:57 +0100 (CET) From: Andy Shevchenko To: Andy Shevchenko , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dmitry Torokhov Subject: [PATCH v1 1/2] Input: wdt87xx_i2c - tidy up ACPI ID table Date: Tue, 13 Jan 2026 08:35:21 +0100 Message-ID: <20260113073556.7380-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260113073556.7380-1-andriy.shevchenko@linux.intel.com> References: <20260113073556.7380-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Tidy up ACPI ID table: - drop ACPI_PTR() and hence replace acpi.h with mod_devicetable.h et al. - remove explicit driver_data initializer Signed-off-by: Andy Shevchenko --- drivers/input/touchscreen/wdt87xx_i2c.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/wdt87xx_i2c.c b/drivers/input/touchs= creen/wdt87xx_i2c.c index 88d376090e6e..99636d6eb0f3 100644 --- a/drivers/input/touchscreen/wdt87xx_i2c.c +++ b/drivers/input/touchscreen/wdt87xx_i2c.c @@ -9,17 +9,24 @@ * may be copied, distributed, and modified under those terms. */ =20 +#include +#include +#include +#include #include #include +#include #include -#include #include #include +#include +#include #include +#include +#include #include -#include -#include -#include +#include +#include #include =20 #define WDT87XX_NAME "wdt87xx_i2c" @@ -1153,13 +1160,11 @@ static const struct i2c_device_id wdt87xx_dev_id[] = =3D { }; MODULE_DEVICE_TABLE(i2c, wdt87xx_dev_id); =20 -#ifdef CONFIG_ACPI static const struct acpi_device_id wdt87xx_acpi_id[] =3D { - { "WDHT0001", 0 }, + { "WDHT0001" }, { } }; MODULE_DEVICE_TABLE(acpi, wdt87xx_acpi_id); -#endif =20 static struct i2c_driver wdt87xx_driver =3D { .probe =3D wdt87xx_ts_probe, @@ -1168,7 +1173,7 @@ static struct i2c_driver wdt87xx_driver =3D { .name =3D WDT87XX_NAME, .dev_groups =3D wdt87xx_groups, .pm =3D pm_sleep_ptr(&wdt87xx_pm_ops), - .acpi_match_table =3D ACPI_PTR(wdt87xx_acpi_id), + .acpi_match_table =3D wdt87xx_acpi_id, }, }; module_i2c_driver(wdt87xx_driver); --=20 2.50.1 From nobody Sat Feb 7 13:41:29 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BC63226CF6; Tue, 13 Jan 2026 07:36:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768289761; cv=none; b=QuMqtn037mfontiIygIPhT2rN4HAZ8fS7s7nKyct51sTzUs57ANaIY7OmS5qX6kI+/cg9le9Or2IKwUy2CfFlifo3sZKCFYtU8c3PxtkRsAnuYt9XmbQor1CJV7IC1StuMoDd1L4CZQzzhil6/gkwus+PPrkVLIdQ2hZNtbPL1k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768289761; c=relaxed/simple; bh=hoS/L5g4HueJM0uhUXkrsfm5tiMeRdYmScwyCbGr65g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OBfVPpNQtmh4UJCMiIqAirA6cPTO2vLxRhXM/rUkkb1Lhridhwvt5WlGndUZSL8Hlri5AZ1L4vkiB9ujk+z54EOEDZPN6eY5InDUB0aqSYxhbYYPNTLC/qX8TAFxhXUhv6mk7xY68mGZSpNU1+5VxkyROLO5wDZXbAQT3gpnN+s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=k0dhfPL9; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="k0dhfPL9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1768289760; x=1799825760; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hoS/L5g4HueJM0uhUXkrsfm5tiMeRdYmScwyCbGr65g=; b=k0dhfPL9XK9Ok5NqfDDaO51Mg7za4E5OlWtZjxTeDmFCSbMjr80plSk7 WeXzD1aqTJ3b5nnttLltD9tJhuGhyqZMP3UdLqtzWNXr0bpXFOwTBZRmm YpwZp3okTkPwApAu5Wpftr+CUVIPHWPxj3D+e+ybXTxXgdC3GFM/u7GmU 35x5wiqsIggz8fNT/PwQJVkvuqH2sT040GOQld3bur63svI2rJkAx0XpU IeP3CrjnTb/bra5lHuelTbQlWnKZ6AkXBTrenrYYrCktV7aIhsbWV3KU5 OgvhsopXHC/Jz0WUrXLGtKKeL5aEAW3RWPoVSqDZyDxctIdE+eOUULIN3 A==; X-CSE-ConnectionGUID: VBmsBHKhSRS5A2zVuR/YNw== X-CSE-MsgGUID: qT7DzUllSoSA2uIx1Onvxw== X-IronPort-AV: E=McAfee;i="6800,10657,11669"; a="79866201" X-IronPort-AV: E=Sophos;i="6.21,222,1763452800"; d="scan'208";a="79866201" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2026 23:35:59 -0800 X-CSE-ConnectionGUID: RAxybaMiSvi+EDQYE/4lRg== X-CSE-MsgGUID: Oa+Mj7NlTQSg3fcCM3kjAA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,222,1763452800"; d="scan'208";a="203526548" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa010.jf.intel.com with ESMTP; 12 Jan 2026 23:35:59 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id EFEFA99; Tue, 13 Jan 2026 08:35:57 +0100 (CET) From: Andy Shevchenko To: Andy Shevchenko , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dmitry Torokhov Subject: [PATCH v1 2/2] Input: wdt87xx_i2c - switch to use dev_err_probe() Date: Tue, 13 Jan 2026 08:35:22 +0100 Message-ID: <20260113073556.7380-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260113073556.7380-1-andriy.shevchenko@linux.intel.com> References: <20260113073556.7380-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Switch to use dev_err_probe() to simplify the error path and unify a message template. Signed-off-by: Andy Shevchenko --- drivers/input/touchscreen/wdt87xx_i2c.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen/wdt87xx_i2c.c b/drivers/input/touchs= creen/wdt87xx_i2c.c index 99636d6eb0f3..3e7fbc4d7549 100644 --- a/drivers/input/touchscreen/wdt87xx_i2c.c +++ b/drivers/input/touchscreen/wdt87xx_i2c.c @@ -1033,10 +1033,8 @@ static int wdt87xx_ts_create_input_device(struct wdt= 87xx_data *wdt) int error; =20 input =3D devm_input_allocate_device(dev); - if (!input) { - dev_err(dev, "failed to allocate input device\n"); - return -ENOMEM; - } + if (!input) + return dev_err_probe(dev, -ENOMEM, "failed to allocate input device\n"); wdt->input =3D input; =20 input->name =3D "WDT87xx Touchscreen"; @@ -1060,16 +1058,15 @@ static int wdt87xx_ts_create_input_device(struct wd= t87xx_data *wdt) INPUT_MT_DIRECT | INPUT_MT_DROP_UNUSED); =20 error =3D input_register_device(input); - if (error) { - dev_err(dev, "failed to register input device: %d\n", error); - return error; - } + if (error) + return dev_err_probe(dev, error, "failed to register input device\n"); =20 return 0; } =20 static int wdt87xx_ts_probe(struct i2c_client *client) { + struct device *dev =3D &client->dev; struct wdt87xx_data *wdt; int error; =20 @@ -1103,10 +1100,8 @@ static int wdt87xx_ts_probe(struct i2c_client *clien= t) NULL, wdt87xx_ts_interrupt, IRQF_ONESHOT, client->name, wdt); - if (error) { - dev_err(&client->dev, "request irq failed: %d\n", error); - return error; - } + if (error) + return dev_err_probe(dev, error, "request irq failed\n"); =20 return 0; } --=20 2.50.1