#include <linux/phy.h>
#include <linux/device.h>
#include <linux/ctype.h>
#include <linux/hwmon.h>
#include "aquantia.h"
#if IS_REACHABLE(CONFIG_HWMON)
static umode_t aqr_hwmon_is_visible(const void *data,
enum hwmon_sensor_types type,
u32 attr, int channel)
{ … }
static int aqr_hwmon_get(struct phy_device *phydev, int reg, long *value)
{ … }
static int aqr_hwmon_set(struct phy_device *phydev, int reg, long value)
{ … }
static int aqr_hwmon_test_bit(struct phy_device *phydev, int reg, int bit)
{ … }
static int aqr_hwmon_status1(struct phy_device *phydev, int bit, long *value)
{ … }
static int aqr_hwmon_read(struct device *dev, enum hwmon_sensor_types type,
u32 attr, int channel, long *value)
{ … }
static int aqr_hwmon_write(struct device *dev, enum hwmon_sensor_types type,
u32 attr, int channel, long value)
{ … }
static const struct hwmon_ops aqr_hwmon_ops = …;
static u32 aqr_hwmon_chip_config[] = …;
static const struct hwmon_channel_info aqr_hwmon_chip = …;
static u32 aqr_hwmon_temp_config[] = …;
static const struct hwmon_channel_info aqr_hwmon_temp = …;
static const struct hwmon_channel_info * const aqr_hwmon_info[] = …;
static const struct hwmon_chip_info aqr_hwmon_chip_info = …;
int aqr_hwmon_probe(struct phy_device *phydev)
{ … }
#endif