| * 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> |
| static int aic23_spi_probe(struct spi_device *spi) |
| dev_dbg(&spi->dev, "probing tlv320aic23 spi device\n"); |
| regmap = devm_regmap_init_spi(spi, &tlv320aic23_regmap); |
| return tlv320aic23_probe(&spi->dev, regmap); |
| static struct spi_driver aic23_spi = { |
| .probe = aic23_spi_probe, |
| module_spi_driver(aic23_spi); |
| MODULE_DESCRIPTION("ASoC TLV320AIC23 codec driver SPI"); |
| MODULE_AUTHOR("Arun KS <arunks@mistralsolutions.com>"); |