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 279A833A6F1; Wed, 30 Sep 2026 18:54:58 +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=1790794499; cv=none; b=NfJVgRCCfOCIxGv299cFebrRE2mOa8H6HysKZlIBwjKBwXXJPZ+B1ZVumWMBib6elNRvRslj+gybOca5Fr5KIKWi5iBNh0zL+pPwf7CinGyNMC8qvi4dgOjWzYnM6wGdat7XEijm40tZAyO46hngsvNhMBNjkEqbbXc+wZwMLG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790794499; c=relaxed/simple; bh=jx9YUx7jfp73AJBRuPciOr5/jQ9VrYUZ4tu7goqn6tM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CxOyM6nRhEqR+geYq5TETdC0ZVL4bHGgEYBNtXxpbS6e7YuefkDBmWX4okRYNNfEGY6dRkG4HuslvS7pTYklw64Cxr4wh3NpVGUaDR8nuEVzocFbg3B1cE2q/wgFr5NLbd6TFsubzYy+TZB58z6CWrODiSLOZDBDS6S2hv96vI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XVCnw0Oq; 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="XVCnw0Oq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 841FA1F000FF; Wed, 30 Sep 2026 18:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790794498; bh=PXW+kkdAKNd6kQxjqAfbwnsUtQXxg+uKlhl89YMEnGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XVCnw0Oqcd3AMaLAZAuISPAKBEGvBw9z3Hkq3JRgdI1ikBAw78733/P33ZCYOI8sO zm3Dry0c/cFp7sDFKSb3m9JEn8XCS5xfYkmyegY3BracLt+JyvskkjkdHda7n6TcJm oLSfOdRPmwqH9FiIapitmLATZ8lmyzKOIUBXkTCQ= 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.6 0198/1193] hwmon: (adt7462) Add of_match_table to support devicetree Date: Wed, 30 Sep 2026 17:14:42 +0200 Message-ID: <20260930152438.604205396@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152434.301151190@linuxfoundation.org> References: <20260930152434.301151190@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.6-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 429566c4245d0..157d18fb5509e 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