#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/mfd/wm8350/core.h>
#include <linux/mfd/wm8350/comparator.h>
static const char * const input_names[] = …;
static ssize_t show_voltage(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t show_label(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
#define WM8350_NAMED_VOLTAGE(id, name) …
WM8350_NAMED_VOLTAGE(…);
WM8350_NAMED_VOLTAGE(…);
WM8350_NAMED_VOLTAGE(…);
static struct attribute *wm8350_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static int wm8350_hwmon_probe(struct platform_device *pdev)
{ … }
static struct platform_driver wm8350_hwmon_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;