mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] hwmon: (tmp102) Drop unnecessary __maybe_unused
@ 2026-05-18 12:22 Flaviu Nistor
  2026-05-18 14:34 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Flaviu Nistor @ 2026-05-18 12:22 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Flaviu Nistor, linux-hwmon, linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwmon: (tmp102) Drop unnecessary __maybe_unused
  2026-05-18 12:22 [PATCH] hwmon: (tmp102) Drop unnecessary __maybe_unused Flaviu Nistor
@ 2026-05-18 14:34 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2026-05-18 14:34 UTC (permalink / raw)
  To: Flaviu Nistor; +Cc: linux-hwmon, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-18 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-18 12:22 [PATCH] hwmon: (tmp102) Drop unnecessary __maybe_unused Flaviu Nistor
2026-05-18 14:34 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®