jme: Fix device PM wakeup API usage
[linux/fpc-iii.git] / sound / soc / codecs / adav803.c
blob66d9fce34e625a87e148a2dafd4dd319f935c737
1 /*
2 * ADAV803 audio driver
4 * Copyright 2014 Analog Devices Inc.
6 * Licensed under the GPL-2.
7 */
9 #include <linux/module.h>
10 #include <linux/i2c.h>
11 #include <linux/regmap.h>
13 #include <sound/soc.h>
15 #include "adav80x.h"
17 static const struct i2c_device_id adav803_id[] = {
18 { "adav803", 0 },
19 { }
21 MODULE_DEVICE_TABLE(i2c, adav803_id);
23 static int adav803_probe(struct i2c_client *client,
24 const struct i2c_device_id *id)
26 return adav80x_bus_probe(&client->dev,
27 devm_regmap_init_i2c(client, &adav80x_regmap_config));
30 static int adav803_remove(struct i2c_client *client)
32 snd_soc_unregister_codec(&client->dev);
33 return 0;
36 static struct i2c_driver adav803_driver = {
37 .driver = {
38 .name = "adav803",
39 .owner = THIS_MODULE,
41 .probe = adav803_probe,
42 .remove = adav803_remove,
43 .id_table = adav803_id,
45 module_i2c_driver(adav803_driver);
47 MODULE_DESCRIPTION("ASoC ADAV803 driver");
48 MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
49 MODULE_AUTHOR("Yi Li <yi.li@analog.com>>");
50 MODULE_LICENSE("GPL");