#include <linux/init.h>
#include <linux/kobject.h>
#include <linux/module.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/hwmon.h>
#include <linux/uaccess.h>
#include "aq_drvinfo.h"
#include "aq_nic.h"
#if IS_REACHABLE(CONFIG_HWMON)
static const char * const atl_temp_label[] = …;
static int aq_hwmon_read(struct device *dev, enum hwmon_sensor_types type,
u32 attr, int channel, long *value)
{ … }
static int aq_hwmon_read_string(struct device *dev,
enum hwmon_sensor_types type,
u32 attr, int channel, const char **str)
{ … }
static umode_t aq_hwmon_is_visible(const void *data,
enum hwmon_sensor_types type,
u32 attr, int channel)
{ … }
static const struct hwmon_ops aq_hwmon_ops = …;
static u32 aq_hwmon_temp_config[] = …;
static const struct hwmon_channel_info aq_hwmon_temp = …;
static const struct hwmon_channel_info * const aq_hwmon_info[] = …;
static const struct hwmon_chip_info aq_hwmon_chip_info = …;
int aq_drvinfo_init(struct net_device *ndev)
{ … }
#else
int aq_drvinfo_init(struct net_device *ndev) { return 0; }
#endif