/*
 * ALSA SoC TLV320AIC23 codec driver SPI interface
 *
 * Author:      Arun KS, <arunks@mistralsolutions.com>
 * Copyright:   (C) 2008 Mistral Solutions Pvt Ltd.,
 *
 * Based on sound/soc/codecs/wm8731.c by Richard Purdie
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/spi/spi.h>
#include <sound/soc.h>

#include "tlv320aic23.h"

static int aic23_spi_probe(struct spi_device *spi)
{
	int ret;
	struct regmap *regmap;

	dev_dbg(&spi->dev, "probing tlv320aic23 spi device\n");

	spi->mode = SPI_MODE_0;
	ret = spi_setup(spi);
	if (ret < 0)
		return ret;

	regmap = devm_regmap_init_spi(spi, &tlv320aic23_regmap);
	return tlv320aic23_probe(&spi->dev, regmap);
}

static int aic23_spi_remove(struct spi_device *spi)
{
	snd_soc_unregister_codec(&spi->dev);
	return 0;
}

static struct spi_driver aic23_spi = {
	.driver = {
		.name = "tlv320aic23",
	},
	.probe = aic23_spi_probe,
	.remove = aic23_spi_remove,
};

module_spi_driver(aic23_spi);

MODULE_DESCRIPTION("ASoC TLV320AIC23 codec driver SPI");
MODULE_AUTHOR("Arun KS <arunks@mistralsolutions.com>");
MODULE_LICENSE("GPL");
k</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=853a14ba4682f820266469979c9297debc05f60c'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/clock/microchip,pic32-clock.h?showmsg=1'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/dt-bindings/clock/microchip,pic32-clock.h?id=853a14ba4682f820266469979c9297debc05f60c'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/clock/microchip,pic32-clock.h?id=853a14ba4682f820266469979c9297debc05f60c'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/dt-bindings/clock/microchip,pic32-clock.h?id=853a14ba4682f820266469979c9297debc05f60c'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/clock/microchip,pic32-clock.h'>
<input type='hidden' name='id' value='853a14ba4682f820266469979c9297debc05f60c'/><input type='hidden' name='showmsg' value='1'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=853a14ba4682f820266469979c9297debc05f60c&amp;showmsg=1'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=853a14ba4682f820266469979c9297debc05f60c&amp;showmsg=1'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings?id=853a14ba4682f820266469979c9297debc05f60c&amp;showmsg=1'>dt-bindings</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/clock?id=853a14ba4682f820266469979c9297debc05f60c&amp;showmsg=1'>clock</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/clock/microchip,pic32-clock.h?id=853a14ba4682f820266469979c9297debc05f60c&amp;showmsg=1'>microchip,pic32-clock.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/clock/microchip,pic32-clock.h?id=853a14ba4682f820266469979c9297debc05f60c'>Collapse</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>