// SPDX-License-Identifier: GPL-2.0 /* * Support for PNI RM3100 3-axis geomagnetic sensor on a i2c bus. * * Copyright (C) 2018 Song Qiang <[email protected]> * * i2c slave address: 0x20 + SA1 << 1 + SA0. */ #include <linux/i2c.h> #include <linux/module.h> #include "rm3100.h" static const struct regmap_config rm3100_regmap_config = …; static int rm3100_probe(struct i2c_client *client) { … } static const struct of_device_id rm3100_dt_match[] = …; MODULE_DEVICE_TABLE(of, rm3100_dt_match); static struct i2c_driver rm3100_driver = …; module_i2c_driver(…) …; MODULE_AUTHOR(…) …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …; MODULE_IMPORT_NS(…);