From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 11D194FC350; Thu, 17 Sep 2026 17:59:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789667956; cv=none; b=q4WzP1oZ4XLpwRmkTo4e64P3QQcMw3UwrrmOD/IGwfBmzwm2pSjH43ISdSiP9UVx0wnkFMrXnet3wZCRJI1t6hOHrO7XkY5ipH7S9uV+XfLKU9wkjUNoFGLY9ZsJmRt3u65Dt94oq2OLPq1FuUOdbH0z1BdqK4OJDLDyghaqmPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789667956; c=relaxed/simple; bh=b/f01O59NBgJsVfrJkV5G8mEuKWI9eAq1V+0UHq1UW0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V3ugsPpZgVtxkJqS36EA35W/47O+7hYPa6cpMhmm5zhjWMnCqGd1vLv3ZQXFp5d83ThKbgz3ZE0diOALZ76B+d0fsyYYBXVmx+PZ6bL9dC29sbyc7rx/4r0jET1MZzqA3n8fVM8v9bPPs6ffFrZ5H2pLtY0fbBKrdnFc7X2RVbQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fq8LreDL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Fq8LreDL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 629EA1F000FF; Thu, 17 Sep 2026 17:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789667954; bh=DvrtfbN4iy2giHcZEykB78B+Sh4W/gwl/NdW+CmAk6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Fq8LreDLbUJOdglqIr5Kr1NkvqiXsK+kyDT4CkJIoB844TskKK9bMJAtocp7AHNR0 oGeQxtB014yHqQXdgnwi4duL8er3OLQPdkpKgB4TdoEFGy6tjXK8huQwbAp05dVK98 slWn9Z9Rl0wq6XSZaWGU3M+IKlDCyd6kQwCPagX0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kory Maincent , Romain Gantois , Guenter Roeck , Sasha Levin Subject: [PATCH 6.12 0266/1102] hwmon: (adt7462) Add of_match_table to support devicetree Date: Thu, 17 Sep 2026 16:03:29 +0100 Message-ID: <20260917151546.281284300@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151539.408551884@linuxfoundation.org> References: <20260917151539.408551884@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kory Maincent [ Upstream commit cd1b42617aafe01810ab7d3b9948d2f5fa9fb8af ] Add of_match_table to add support of devicetree probing. Signed-off-by: Kory Maincent [rgantois: Removed of_match_ptr().] Signed-off-by: Romain Gantois Link: https://lore.kernel.org/r/20260608-adt7462-bindings-v2-1-272982c40325@bootlin.com Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/adt7462.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/hwmon/adt7462.c b/drivers/hwmon/adt7462.c index 174dfee47f7a7..f935c3477b364 100644 --- a/drivers/hwmon/adt7462.c +++ b/drivers/hwmon/adt7462.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -1814,10 +1815,17 @@ static const struct i2c_device_id adt7462_id[] = { }; MODULE_DEVICE_TABLE(i2c, adt7462_id); +static const struct of_device_id adt7462_of_match[] = { + { .compatible = "onnn,adt7462" }, + { }, +}; +MODULE_DEVICE_TABLE(of, adt7462_of_match); + static struct i2c_driver adt7462_driver = { .class = I2C_CLASS_HWMON, .driver = { .name = "adt7462", + .of_match_table = adt7462_of_match, }, .probe = adt7462_probe, .id_table = adt7462_id, -- 2.53.0