linux/drivers/hwmon/gxp-fan-ctrl.c

// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P. */

#include <linux/bits.h>
#include <linux/err.h>
#include <linux/hwmon.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>

#define OFS_FAN_INST
#define OFS_FAN_FAIL
#define OFS_SEVSTAT
#define POWER_BIT

struct gxp_fan_ctrl_drvdata {};

static bool fan_installed(struct device *dev, int fan)
{}

static long fan_failed(struct device *dev, int fan)
{}

static long fan_enabled(struct device *dev, int fan)
{}

static int gxp_pwm_write(struct device *dev, u32 attr, int channel, long val)
{}

static int gxp_fan_ctrl_write(struct device *dev, enum hwmon_sensor_types type,
			      u32 attr, int channel, long val)
{}

static int gxp_fan_read(struct device *dev, u32 attr, int channel, long *val)
{}

static int gxp_pwm_read(struct device *dev, u32 attr, int channel, long *val)
{}

static int gxp_fan_ctrl_read(struct device *dev, enum hwmon_sensor_types type,
			     u32 attr, int channel, long *val)
{}

static umode_t gxp_fan_ctrl_is_visible(const void *_data,
				       enum hwmon_sensor_types type,
				       u32 attr, int channel)
{}

static const struct hwmon_ops gxp_fan_ctrl_ops =;

static const struct hwmon_channel_info * const gxp_fan_ctrl_info[] =;

static const struct hwmon_chip_info gxp_fan_ctrl_chip_info =;

static int gxp_fan_ctrl_probe(struct platform_device *pdev)
{}

static const struct of_device_id gxp_fan_ctrl_of_match[] =;
MODULE_DEVICE_TABLE(of, gxp_fan_ctrl_of_match);

static struct platform_driver gxp_fan_ctrl_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();