// SPDX-License-Identifier: GPL-2.0-only /* * wm8731-i2c.c -- WM8731 ALSA SoC Audio driver I2C code * * Copyright 2005 Openedhand Ltd. * Copyright 2006-12 Wolfson Microelectronics, plc * * Author: Richard Purdie <[email protected]> * * Based on wm8753.c by Liam Girdwood */ #include <linux/i2c.h> #include <linux/mod_devicetable.h> #include <linux/module.h> #include "wm8731.h" static const struct of_device_id wm8731_of_match[] = …; MODULE_DEVICE_TABLE(of, wm8731_of_match); static int wm8731_i2c_probe(struct i2c_client *i2c) { … } static const struct i2c_device_id wm8731_i2c_id[] = …; MODULE_DEVICE_TABLE(i2c, wm8731_i2c_id); static struct i2c_driver wm8731_i2c_driver = …; module_i2c_driver(…) …; MODULE_DESCRIPTION(…) …; MODULE_AUTHOR(…) …; MODULE_LICENSE(…) …;