1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * ADAV803 audio driver 3 * ADAV803 audio driver 4 * 4 * 5 * Copyright 2014 Analog Devices Inc. 5 * Copyright 2014 Analog Devices Inc. 6 */ 6 */ 7 7 8 #include <linux/module.h> 8 #include <linux/module.h> 9 #include <linux/i2c.h> 9 #include <linux/i2c.h> 10 #include <linux/regmap.h> 10 #include <linux/regmap.h> 11 11 12 #include <sound/soc.h> 12 #include <sound/soc.h> 13 13 14 #include "adav80x.h" 14 #include "adav80x.h" 15 15 16 static const struct i2c_device_id adav803_id[] 16 static const struct i2c_device_id adav803_id[] = { 17 { "adav803" }, !! 17 { "adav803", 0 }, 18 { } 18 { } 19 }; 19 }; 20 MODULE_DEVICE_TABLE(i2c, adav803_id); 20 MODULE_DEVICE_TABLE(i2c, adav803_id); 21 21 22 static int adav803_probe(struct i2c_client *cl !! 22 static int adav803_probe(struct i2c_client *client, >> 23 const struct i2c_device_id *id) 23 { 24 { 24 return adav80x_bus_probe(&client->dev, 25 return adav80x_bus_probe(&client->dev, 25 devm_regmap_init_i2c(client, & 26 devm_regmap_init_i2c(client, &adav80x_regmap_config)); 26 } 27 } 27 28 28 static struct i2c_driver adav803_driver = { 29 static struct i2c_driver adav803_driver = { 29 .driver = { 30 .driver = { 30 .name = "adav803", 31 .name = "adav803", 31 }, 32 }, 32 .probe = adav803_probe, 33 .probe = adav803_probe, 33 .id_table = adav803_id, 34 .id_table = adav803_id, 34 }; 35 }; 35 module_i2c_driver(adav803_driver); 36 module_i2c_driver(adav803_driver); 36 37 37 MODULE_DESCRIPTION("ASoC ADAV803 driver"); 38 MODULE_DESCRIPTION("ASoC ADAV803 driver"); 38 MODULE_AUTHOR("Lars-Peter Clausen <lars@metafo 39 MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); 39 MODULE_AUTHOR("Yi Li <yi.li@analog.com>>"); 40 MODULE_AUTHOR("Yi Li <yi.li@analog.com>>"); 40 MODULE_LICENSE("GPL"); 41 MODULE_LICENSE("GPL"); 41 42
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.