#include <linux/debugfs.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of.h>
#include "pmbus.h"
struct dps920ab_data { … };
static int dps920ab_read_word_data(struct i2c_client *client, int page, int phase, int reg)
{ … }
static int dps920ab_write_word_data(struct i2c_client *client, int page, int reg,
u16 word)
{ … }
static struct pmbus_driver_info dps920ab_info = …;
static int dps920ab_mfr_id_show(struct seq_file *s, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int dps920ab_mfr_model_show(struct seq_file *s, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static void dps920ab_init_debugfs(struct dps920ab_data *data, struct i2c_client *client)
{ … }
static int dps920ab_probe(struct i2c_client *client)
{ … }
static const struct of_device_id __maybe_unused dps920ab_of_match[] = …;
MODULE_DEVICE_TABLE(of, dps920ab_of_match);
static struct i2c_driver dps920ab_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);