0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include <linux/module.h>
0011 #include <linux/regmap.h>
0012 #include <linux/spi/spi.h>
0013 #include <sound/soc.h>
0014 #include "es8328.h"
0015
0016 static const struct of_device_id es8328_of_match[] = {
0017 { .compatible = "everest,es8328", },
0018 { }
0019 };
0020 MODULE_DEVICE_TABLE(of, es8328_of_match);
0021
0022 static int es8328_spi_probe(struct spi_device *spi)
0023 {
0024 return es8328_probe(&spi->dev,
0025 devm_regmap_init_spi(spi, &es8328_regmap_config));
0026 }
0027
0028 static struct spi_driver es8328_spi_driver = {
0029 .driver = {
0030 .name = "es8328",
0031 .of_match_table = es8328_of_match,
0032 },
0033 .probe = es8328_spi_probe,
0034 };
0035
0036 module_spi_driver(es8328_spi_driver);
0037 MODULE_DESCRIPTION("ASoC ES8328 audio CODEC SPI driver");
0038 MODULE_AUTHOR("Sean Cross <xobs@kosagi.com>");
0039 MODULE_LICENSE("GPL");