#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/platform_device.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include "sch56xx-common.h"
#define DRVNAME …
#define DEVNAME …
#define SCH5636_REG_FUJITSU_ID …
#define SCH5636_REG_FUJITSU_REV …
#define SCH5636_NO_INS …
#define SCH5636_NO_TEMPS …
#define SCH5636_NO_FANS …
static const u16 SCH5636_REG_IN_VAL[SCH5636_NO_INS] = …;
static const u16 SCH5636_REG_IN_FACTORS[SCH5636_NO_INS] = …;
static const char * const SCH5636_IN_LABELS[SCH5636_NO_INS] = …;
static const u16 SCH5636_REG_TEMP_VAL[SCH5636_NO_TEMPS] = …;
#define SCH5636_REG_TEMP_CTRL(i) …
#define SCH5636_TEMP_WORKING …
#define SCH5636_TEMP_ALARM …
#define SCH5636_TEMP_DEACTIVATED …
static const u16 SCH5636_REG_FAN_VAL[SCH5636_NO_FANS] = …;
#define SCH5636_REG_FAN_CTRL(i) …
#define SCH5636_FAN_ALARM …
#define SCH5636_FAN_NOT_PRESENT …
#define SCH5636_FAN_DEACTIVATED …
struct sch5636_data { … };
static struct sch5636_data *sch5636_update_device(struct device *dev)
{ … }
static int reg_to_rpm(u16 reg)
{ … }
static ssize_t name_show(struct device *dev, struct device_attribute *devattr,
char *buf)
{ … }
static ssize_t in_value_show(struct device *dev,
struct device_attribute *devattr, char *buf)
{ … }
static ssize_t in_label_show(struct device *dev,
struct device_attribute *devattr, char *buf)
{ … }
static ssize_t temp_value_show(struct device *dev,
struct device_attribute *devattr, char *buf)
{ … }
static ssize_t temp_fault_show(struct device *dev,
struct device_attribute *devattr, char *buf)
{ … }
static ssize_t temp_alarm_show(struct device *dev,
struct device_attribute *devattr, char *buf)
{ … }
static ssize_t fan_value_show(struct device *dev,
struct device_attribute *devattr, char *buf)
{ … }
static ssize_t fan_fault_show(struct device *dev,
struct device_attribute *devattr, char *buf)
{ … }
static ssize_t fan_alarm_show(struct device *dev,
struct device_attribute *devattr, char *buf)
{ … }
static struct sensor_device_attribute sch5636_attr[] = …;
static struct sensor_device_attribute sch5636_temp_attr[] = …;
static struct sensor_device_attribute sch5636_fan_attr[] = …;
static void sch5636_remove(struct platform_device *pdev)
{ … }
static int sch5636_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id sch5636_device_id[] = …;
MODULE_DEVICE_TABLE(platform, sch5636_device_id);
static struct platform_driver sch5636_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;