#include <linux/acpi.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/hwmon.h>
#include <linux/limits.h>
#include <linux/types.h>
#include <linux/units.h>
#include "fan.h"
#define FAN_SPEED_UNAVAILABLE …
#define FAN_POWER_UNAVAILABLE …
static struct acpi_fan_fps *acpi_fan_get_current_fps(struct acpi_fan *fan, u64 control)
{ … }
static umode_t acpi_fan_hwmon_is_visible(const void *drvdata, enum hwmon_sensor_types type,
u32 attr, int channel)
{ … }
static int acpi_fan_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr,
int channel, long *val)
{ … }
static const struct hwmon_ops acpi_fan_hwmon_ops = …;
static const struct hwmon_channel_info * const acpi_fan_hwmon_info[] = …;
static const struct hwmon_chip_info acpi_fan_hwmon_chip_info = …;
int devm_acpi_fan_create_hwmon(struct acpi_device *device)
{ … }