[PATCH] hwmon: (tmp102) Drop unnecessary __maybe_unused

Flaviu Nistor posted 1 patch 6 days, 16 hours ago
drivers/hwmon/tmp102.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] hwmon: (tmp102) Drop unnecessary __maybe_unused
Posted by Flaviu Nistor 6 days, 16 hours ago
tmp102_of_match is used unconditionally in tmp102_driver, so there is no
need for __maybe_unused.

Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>
---
 drivers/hwmon/tmp102.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c
index 29e44c8db540..6bd1bed3cdb8 100644
--- a/drivers/hwmon/tmp102.c
+++ b/drivers/hwmon/tmp102.c
@@ -401,7 +401,7 @@ static const struct i2c_device_id tmp102_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, tmp102_id);
 
-static const struct of_device_id __maybe_unused tmp102_of_match[] = {
+static const struct of_device_id tmp102_of_match[] = {
 	{ .compatible = "ti,tmp102" },
 	{ },
 };
-- 
2.34.1
Re: [PATCH] hwmon: (tmp102) Drop unnecessary __maybe_unused
Posted by Guenter Roeck 6 days, 13 hours ago
On Mon, May 18, 2026 at 03:22:10PM +0300, Flaviu Nistor wrote:
> tmp102_of_match is used unconditionally in tmp102_driver, so there is no
> need for __maybe_unused.
> 
> Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>

I'll squash this patch into the preceding patch.

Thanks,
Guenter