linux/drivers/hwmon/pmbus/delta-ahe50dc-fan.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Delta AHE-50DC power shelf fan control module driver
 *
 * Copyright 2021 Zev Weiss <[email protected]>
 */

#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pmbus.h>

#include "pmbus.h"

#define AHE50DC_PMBUS_READ_TEMP4

static int ahe50dc_fan_write_byte(struct i2c_client *client, int page, u8 value)
{}

static int ahe50dc_fan_read_word_data(struct i2c_client *client, int page, int phase, int reg)
{}

static struct pmbus_driver_info ahe50dc_fan_info =;

/*
 * CAPABILITY returns 0xff, which appears to be this device's way indicating
 * it doesn't support something (and if we enable I2C_CLIENT_PEC on seeing bit
 * 7 being set it generates bad PECs, so let's not go there).
 */
static struct pmbus_platform_data ahe50dc_fan_data =;

static int ahe50dc_fan_probe(struct i2c_client *client)
{}

static const struct i2c_device_id ahe50dc_fan_id[] =;
MODULE_DEVICE_TABLE(i2c, ahe50dc_fan_id);

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

static struct i2c_driver ahe50dc_fan_driver =;
module_i2c_driver();

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