1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * ACPI fan device IDs are shared between the fan driver and the device power
7 * Add new device IDs before the generic ACPI fan one.
13 #include <linux/kconfig.h>
15 #define ACPI_FAN_DEVICE_IDS \
16 {"INT3404", }, /* Fan */ \
17 {"INTC1044", }, /* Fan for Tiger Lake generation */ \
18 {"INTC1048", }, /* Fan for Alder Lake generation */ \
19 {"INTC1063", }, /* Fan for Meteor Lake generation */ \
20 {"INTC106A", }, /* Fan for Lunar Lake generation */ \
21 {"INTC10A2", }, /* Fan for Raptor Lake generation */ \
22 {"PNP0C0B", } /* Generic ACPI fan */
24 #define ACPI_FPS_NAME_LEN 20
32 char name[ACPI_FPS_NAME_LEN];
33 struct device_attribute dev_attr;
40 u8 low_speed_notification;
51 struct acpi_fan_fif fif;
52 struct acpi_fan_fps *fps;
54 struct thermal_cooling_device *cdev;
55 struct device_attribute fst_speed;
56 struct device_attribute fine_grain_control;
59 int acpi_fan_get_fst(struct acpi_device *device, struct acpi_fan_fst *fst);
60 int acpi_fan_create_attributes(struct acpi_device *device);
61 void acpi_fan_delete_attributes(struct acpi_device *device);
63 #if IS_REACHABLE(CONFIG_HWMON)
64 int devm_acpi_fan_create_hwmon(struct acpi_device *device);
66 static inline int devm_acpi_fan_create_hwmon(struct acpi_device *device) { return 0; };