// SPDX-License-Identifier: GPL-2.0-or-later /* * wm8350-i2c.c -- Generic I2C driver for Wolfson WM8350 PMIC * * Copyright 2007, 2008 Wolfson Microelectronics PLC. * * Author: Liam Girdwood * [email protected] */ #include <linux/err.h> #include <linux/init.h> #include <linux/i2c.h> #include <linux/platform_device.h> #include <linux/mfd/wm8350/core.h> #include <linux/regmap.h> #include <linux/slab.h> static int wm8350_i2c_probe(struct i2c_client *i2c) { … } static const struct i2c_device_id wm8350_i2c_id[] = …; static struct i2c_driver wm8350_i2c_driver = …; static int __init wm8350_i2c_init(void) { … } /* init early so consumer devices can complete system boot */ subsys_initcall(wm8350_i2c_init);