* [PATCH] hwmon: (lm75) Add explicit header include
@ 2026-05-16 7:57 Flaviu Nistor
2026-05-16 8:06 ` sashiko-bot
2026-05-16 12:27 ` Guenter Roeck
0 siblings, 2 replies; 5+ messages in thread
From: Flaviu Nistor @ 2026-05-16 7:57 UTC (permalink / raw)
To: Guenter Roeck; +Cc: Flaviu Nistor, linux-hwmon, linux-kernel
Since device_property_read_string() is used in the
probe function add explicit include for
linux/mod_devicetable.h and linux/property.h rather
than having implicit inclusions.
Header linux/of.h can be removed and also of_match_ptr()
improving non-Device Tree compatibility of the driver.
Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>
---
drivers/hwmon/lm75.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index 845a0e09ea9f..32279049d44c 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -14,7 +14,8 @@
#include <linux/i3c/device.h>
#include <linux/hwmon.h>
#include <linux/err.h>
-#include <linux/of.h>
+#include <linux/mod_devicetable.h>
+#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/util_macros.h>
#include <linux/regulator/consumer.h>
@@ -1152,7 +1153,7 @@ static struct i2c_driver lm75_i2c_driver = {
.class = I2C_CLASS_HWMON,
.driver = {
.name = "lm75",
- .of_match_table = of_match_ptr(lm75_of_match),
+ .of_match_table = lm75_of_match,
.pm = LM75_DEV_PM_OPS,
},
.probe = lm75_i2c_probe,
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] hwmon: (lm75) Add explicit header include
2026-05-16 7:57 [PATCH] hwmon: (lm75) Add explicit header include Flaviu Nistor
@ 2026-05-16 8:06 ` sashiko-bot
2026-05-16 8:14 ` Krzysztof Kozlowski
2026-05-16 12:27 ` Guenter Roeck
1 sibling, 1 reply; 5+ messages in thread
From: sashiko-bot @ 2026-05-16 8:06 UTC (permalink / raw)
To: Flaviu Nistor; +Cc: linux-hwmon
> Since device_property_read_string() is used in the
> probe function add explicit include for
> linux/mod_devicetable.h and linux/property.h rather
> than having implicit inclusions.
> Header linux/of.h can be removed and also of_match_ptr()
> improving non-Device Tree compatibility of the driver.
>
> Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>
Reviewed-by: Sashiko <sashiko-bot@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] hwmon: (lm75) Add explicit header include
2026-05-16 8:06 ` sashiko-bot
@ 2026-05-16 8:14 ` Krzysztof Kozlowski
2026-05-16 12:14 ` Guenter Roeck
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-16 8:14 UTC (permalink / raw)
To: sashiko-reviews, Flaviu Nistor, Roman Gushchin; +Cc: linux-hwmon
On 16/05/2026 10:06, sashiko-bot@kernel.org wrote:
>> Since device_property_read_string() is used in the
>> probe function add explicit include for
>> linux/mod_devicetable.h and linux/property.h rather
>> than having implicit inclusions.
>> Header linux/of.h can be removed and also of_match_ptr()
>> improving non-Device Tree compatibility of the driver.
>>
>> Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>
>
> Reviewed-by: Sashiko <sashiko-bot@kernel.org>
>
NAK, fake tag.
https://lore.kernel.org/r/ad139e54-a7f0-4d09-832c-6b2bf2e93e03@kernel.org
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] hwmon: (lm75) Add explicit header include
2026-05-16 8:14 ` Krzysztof Kozlowski
@ 2026-05-16 12:14 ` Guenter Roeck
0 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2026-05-16 12:14 UTC (permalink / raw)
To: Krzysztof Kozlowski, sashiko-reviews, Flaviu Nistor,
Roman Gushchin
Cc: linux-hwmon
On 5/16/26 01:14, Krzysztof Kozlowski wrote:
> On 16/05/2026 10:06, sashiko-bot@kernel.org wrote:
>>> Since device_property_read_string() is used in the
>>> probe function add explicit include for
>>> linux/mod_devicetable.h and linux/property.h rather
>>> than having implicit inclusions.
>>> Header linux/of.h can be removed and also of_match_ptr()
>>> improving non-Device Tree compatibility of the driver.
>>>
>>> Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>
>>
>> Reviewed-by: Sashiko <sashiko-bot@kernel.org>
>>
>
> NAK, fake tag.
>
Until and unless there is an official policy that explicitly states
that AI agents MUST NOT provide Reviewed-by: tags, I will ignore your
NAKs on patches submitted in my scope of responsibility. Please point
to the policy, not to your opinion about review feedback from AI agents.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] hwmon: (lm75) Add explicit header include
2026-05-16 7:57 [PATCH] hwmon: (lm75) Add explicit header include Flaviu Nistor
2026-05-16 8:06 ` sashiko-bot
@ 2026-05-16 12:27 ` Guenter Roeck
1 sibling, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2026-05-16 12:27 UTC (permalink / raw)
To: Flaviu Nistor; +Cc: linux-hwmon, linux-kernel
On Sat, May 16, 2026 at 10:57:08AM +0300, Flaviu Nistor wrote:
> Since device_property_read_string() is used in the
> probe function add explicit include for
> linux/mod_devicetable.h and linux/property.h rather
> than having implicit inclusions.
> Header linux/of.h can be removed and also of_match_ptr()
> improving non-Device Tree compatibility of the driver.
>
Line breaks should be at column 75. There are way too many line breaks
above.
> ---
> drivers/hwmon/lm75.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index 845a0e09ea9f..32279049d44c 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -14,7 +14,8 @@
> #include <linux/i3c/device.h>
> #include <linux/hwmon.h>
> #include <linux/err.h>
> -#include <linux/of.h>
> +#include <linux/mod_devicetable.h>
> +#include <linux/property.h>
> #include <linux/regmap.h>
> #include <linux/util_macros.h>
> #include <linux/regulator/consumer.h>
> @@ -1152,7 +1153,7 @@ static struct i2c_driver lm75_i2c_driver = {
> .class = I2C_CLASS_HWMON,
> .driver = {
> .name = "lm75",
> - .of_match_table = of_match_ptr(lm75_of_match),
> + .of_match_table = lm75_of_match,
With this, the __maybe_unused in the declaration of lm75_of_match
is no longer necessary. Please drop.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-05-16 12:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-16 7:57 [PATCH] hwmon: (lm75) Add explicit header include Flaviu Nistor
2026-05-16 8:06 ` sashiko-bot
2026-05-16 8:14 ` Krzysztof Kozlowski
2026-05-16 12:14 ` Guenter Roeck
2026-05-16 12:27 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.