Linux ACPI
 help / color / mirror / Atom feed
* [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups
@ 2026-07-17 17:08 Andy Shevchenko
  2026-07-17 17:08 ` [PATCH v1 1/2] ACPI: fan: Don't use "proxy" headers Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-07-17 17:08 UTC (permalink / raw)
  To: Rafael J. Wysocki, Armin Wolf, Andy Shevchenko, linux-acpi,
	linux-kernel
  Cc: Rafael J. Wysocki, Len Brown

The main purpose of my work is to clean up always included linux/kconfig.h.
But there is room to improve the drivers/acpi/fan.h. Hence this small series.

Andy Shevchenko (2):
  ACPI: fan: Don't use "proxy" headers
  ACPI: fan: Update ACPI fan IDs to follow modern style

 drivers/acpi/fan.h | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

-- 
2.50.1


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

* [PATCH v1 1/2] ACPI: fan: Don't use "proxy" headers
  2026-07-17 17:08 [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups Andy Shevchenko
@ 2026-07-17 17:08 ` Andy Shevchenko
  2026-07-17 17:08 ` [PATCH v1 2/2] ACPI: fan: Update ACPI fan IDs to follow modern style Andy Shevchenko
  2026-07-17 23:01 ` [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups Armin Wolf
  2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-07-17 17:08 UTC (permalink / raw)
  To: Rafael J. Wysocki, Armin Wolf, Andy Shevchenko, linux-acpi,
	linux-kernel
  Cc: Rafael J. Wysocki, Len Brown

Update header inclusions to follow IWYU (Include What You Use)
principle.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/acpi/fan.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/fan.h b/drivers/acpi/fan.h
index 97ce3212edf3..e06c055a8bb6 100644
--- a/drivers/acpi/fan.h
+++ b/drivers/acpi/fan.h
@@ -10,8 +10,9 @@
 #ifndef _ACPI_FAN_H_
 #define _ACPI_FAN_H_
 
-#include <linux/kconfig.h>
+#include <linux/device.h>
 #include <linux/limits.h>
+#include <linux/types.h>
 
 #define ACPI_FAN_DEVICE_IDS	\
 	{"INT3404", }, /* Fan */ \
-- 
2.50.1


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

* [PATCH v1 2/2] ACPI: fan: Update ACPI fan IDs to follow modern style
  2026-07-17 17:08 [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups Andy Shevchenko
  2026-07-17 17:08 ` [PATCH v1 1/2] ACPI: fan: Don't use "proxy" headers Andy Shevchenko
@ 2026-07-17 17:08 ` Andy Shevchenko
  2026-07-17 23:01 ` [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups Armin Wolf
  2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-07-17 17:08 UTC (permalink / raw)
  To: Rafael J. Wysocki, Armin Wolf, Andy Shevchenko, linux-acpi,
	linux-kernel
  Cc: Rafael J. Wysocki, Len Brown

Follow modern style of defining ACPI IDs by using C99 initialisers.
This is a missing part to bigger rework that's ongoing in the kernel.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/acpi/fan.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/acpi/fan.h b/drivers/acpi/fan.h
index e06c055a8bb6..822c5455e43b 100644
--- a/drivers/acpi/fan.h
+++ b/drivers/acpi/fan.h
@@ -14,17 +14,17 @@
 #include <linux/limits.h>
 #include <linux/types.h>
 
-#define ACPI_FAN_DEVICE_IDS	\
-	{"INT3404", }, /* Fan */ \
-	{"INTC1044", }, /* Fan for Tiger Lake generation */ \
-	{"INTC1048", }, /* Fan for Alder Lake generation */ \
-	{"INTC1063", }, /* Fan for Meteor Lake generation */ \
-	{"INTC106A", }, /* Fan for Lunar Lake generation */ \
-	{"INTC10A2", }, /* Fan for Raptor Lake generation */ \
-	{"INTC10D6", }, /* Fan for Panther Lake generation */ \
-	{"INTC10FE", }, /* Fan for Wildcat Lake generation */ \
-	{"INTC10F5", }, /* Fan for Nova Lake generation */ \
-	{"PNP0C0B", } /* Generic ACPI fan */
+#define ACPI_FAN_DEVICE_IDS						\
+	{ .id = "INT3404" },	/* Fan */				\
+	{ .id = "INTC1044" },	/* Fan for Tiger Lake generation */	\
+	{ .id = "INTC1048" },	/* Fan for Alder Lake generation */	\
+	{ .id = "INTC1063" },	/* Fan for Meteor Lake generation */	\
+	{ .id = "INTC106A" },	/* Fan for Lunar Lake generation */	\
+	{ .id = "INTC10A2" },	/* Fan for Raptor Lake generation */	\
+	{ .id = "INTC10D6" },	/* Fan for Panther Lake generation */	\
+	{ .id = "INTC10FE" },	/* Fan for Wildcat Lake generation */	\
+	{ .id = "INTC10F5" },	/* Fan for Nova Lake generation */	\
+	{ .id = "PNP0C0B" }	/* Generic ACPI fan */
 
 #define ACPI_FPS_NAME_LEN	20
 
-- 
2.50.1


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

* Re: [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups
  2026-07-17 17:08 [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups Andy Shevchenko
  2026-07-17 17:08 ` [PATCH v1 1/2] ACPI: fan: Don't use "proxy" headers Andy Shevchenko
  2026-07-17 17:08 ` [PATCH v1 2/2] ACPI: fan: Update ACPI fan IDs to follow modern style Andy Shevchenko
@ 2026-07-17 23:01 ` Armin Wolf
  2 siblings, 0 replies; 4+ messages in thread
From: Armin Wolf @ 2026-07-17 23:01 UTC (permalink / raw)
  To: Andy Shevchenko, Rafael J. Wysocki, linux-acpi, linux-kernel
  Cc: Rafael J. Wysocki, Len Brown

Am 17.07.26 um 19:08 schrieb Andy Shevchenko:

> The main purpose of my work is to clean up always included linux/kconfig.h.
> But there is room to improve the drivers/acpi/fan.h. Hence this small series.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>

>
> Andy Shevchenko (2):
>    ACPI: fan: Don't use "proxy" headers
>    ACPI: fan: Update ACPI fan IDs to follow modern style
>
>   drivers/acpi/fan.h | 25 +++++++++++++------------
>   1 file changed, 13 insertions(+), 12 deletions(-)
>

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

end of thread, other threads:[~2026-07-17 23:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 17:08 [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups Andy Shevchenko
2026-07-17 17:08 ` [PATCH v1 1/2] ACPI: fan: Don't use "proxy" headers Andy Shevchenko
2026-07-17 17:08 ` [PATCH v1 2/2] ACPI: fan: Update ACPI fan IDs to follow modern style Andy Shevchenko
2026-07-17 23:01 ` [PATCH v1 0/2] ACPI: fan: Ad-hoc cleanups Armin Wolf

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