linux/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c

// SPDX-License-Identifier: GPL-2.0-only
/* Atlantic Network Driver
 *
 * Copyright (C) 2014-2019 aQuantia Corporation
 * Copyright (C) 2019-2020 Marvell International Ltd.
 */

/* File aq_drvinfo.c: Definition of common code for firmware info in sys.*/

#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