// SPDX-License-Identifier: GPL-2.0 /* * Analog Devices LTC2947 high precision power and energy monitor over I2C * * Copyright 2019 Analog Devices Inc. */ #include <linux/i2c.h> #include <linux/module.h> #include <linux/regmap.h> #include "ltc2947.h" static const struct regmap_config ltc2947_regmap_config = …; static int ltc2947_probe(struct i2c_client *i2c) { … } static const struct i2c_device_id ltc2947_id[] = …; MODULE_DEVICE_TABLE(i2c, ltc2947_id); static struct i2c_driver ltc2947_driver = …; module_i2c_driver(…) …; MODULE_AUTHOR(…) …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …;