adav803.c 883 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * ADAV803 audio driver
  4. *
  5. * Copyright 2014 Analog Devices Inc.
  6. */
  7. #include <linux/module.h>
  8. #include <linux/i2c.h>
  9. #include <linux/regmap.h>
  10. #include <sound/soc.h>
  11. #include "adav80x.h"
  12. static const struct i2c_device_id adav803_id[] = {
  13. { "adav803", 0 },
  14. { }
  15. };
  16. MODULE_DEVICE_TABLE(i2c, adav803_id);
  17. static int adav803_probe(struct i2c_client *client,
  18. const struct i2c_device_id *id)
  19. {
  20. return adav80x_bus_probe(&client->dev,
  21. devm_regmap_init_i2c(client, &adav80x_regmap_config));
  22. }
  23. static struct i2c_driver adav803_driver = {
  24. .driver = {
  25. .name = "adav803",
  26. },
  27. .probe = adav803_probe,
  28. .id_table = adav803_id,
  29. };
  30. module_i2c_driver(adav803_driver);
  31. MODULE_DESCRIPTION("ASoC ADAV803 driver");
  32. MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
  33. MODULE_AUTHOR("Yi Li <yi.li@analog.com>>");
  34. MODULE_LICENSE("GPL");