Merge remote-tracking branches 'asoc/topic/max98090', 'asoc/topic/max98095', 'asoc...
[deliverable/linux.git] / sound / soc / codecs / adav803.c
CommitLineData
0c2d6964
LPC
1/*
2 * ADAV803 audio driver
3 *
4 * Copyright 2014 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2.
7 */
8
9#include <linux/module.h>
10#include <linux/i2c.h>
11#include <linux/regmap.h>
12
13#include <sound/soc.h>
14
15#include "adav80x.h"
16
17static const struct i2c_device_id adav803_id[] = {
18 { "adav803", 0 },
19 { }
20};
21MODULE_DEVICE_TABLE(i2c, adav803_id);
22
23static int adav803_probe(struct i2c_client *client,
24 const struct i2c_device_id *id)
25{
26 return adav80x_bus_probe(&client->dev,
27 devm_regmap_init_i2c(client, &adav80x_regmap_config));
28}
29
30static int adav803_remove(struct i2c_client *client)
31{
32 snd_soc_unregister_codec(&client->dev);
33 return 0;
34}
35
36static struct i2c_driver adav803_driver = {
37 .driver = {
38 .name = "adav803",
0c2d6964
LPC
39 },
40 .probe = adav803_probe,
41 .remove = adav803_remove,
42 .id_table = adav803_id,
43};
44module_i2c_driver(adav803_driver);
45
46MODULE_DESCRIPTION("ASoC ADAV803 driver");
47MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
48MODULE_AUTHOR("Yi Li <yi.li@analog.com>>");
49MODULE_LICENSE("GPL");
This page took 0.085247 seconds and 5 git commands to generate.