tas6424.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) tas6424.c (ad11678fd0c39a766318f2dd0385008dd111b5fc)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * ALSA SoC Texas Instruments TAS6424 Quad-Channel Audio Amplifier
4 *
5 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/
6 * Author: Andreas Dannenberg <dannenberg@ti.com>
7 * Andrew F. Davis <afd@ti.com>
8 */

--- 668 unchanged lines hidden (view full) ---

677#if IS_ENABLED(CONFIG_OF)
678static const struct of_device_id tas6424_of_ids[] = {
679 { .compatible = "ti,tas6424", },
680 { },
681};
682MODULE_DEVICE_TABLE(of, tas6424_of_ids);
683#endif
684
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * ALSA SoC Texas Instruments TAS6424 Quad-Channel Audio Amplifier
4 *
5 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/
6 * Author: Andreas Dannenberg <dannenberg@ti.com>
7 * Andrew F. Davis <afd@ti.com>
8 */

--- 668 unchanged lines hidden (view full) ---

677#if IS_ENABLED(CONFIG_OF)
678static const struct of_device_id tas6424_of_ids[] = {
679 { .compatible = "ti,tas6424", },
680 { },
681};
682MODULE_DEVICE_TABLE(of, tas6424_of_ids);
683#endif
684
685static int tas6424_i2c_probe(struct i2c_client *client,
686 const struct i2c_device_id *id)
685static int tas6424_i2c_probe(struct i2c_client *client)
687{
688 struct device *dev = &client->dev;
689 struct tas6424_data *tas6424;
690 int ret;
691 int i;
692
693 tas6424 = devm_kzalloc(dev, sizeof(*tas6424), GFP_KERNEL);
694 if (!tas6424)

--- 105 unchanged lines hidden (view full) ---

800};
801MODULE_DEVICE_TABLE(i2c, tas6424_i2c_ids);
802
803static struct i2c_driver tas6424_i2c_driver = {
804 .driver = {
805 .name = "tas6424",
806 .of_match_table = of_match_ptr(tas6424_of_ids),
807 },
686{
687 struct device *dev = &client->dev;
688 struct tas6424_data *tas6424;
689 int ret;
690 int i;
691
692 tas6424 = devm_kzalloc(dev, sizeof(*tas6424), GFP_KERNEL);
693 if (!tas6424)

--- 105 unchanged lines hidden (view full) ---

799};
800MODULE_DEVICE_TABLE(i2c, tas6424_i2c_ids);
801
802static struct i2c_driver tas6424_i2c_driver = {
803 .driver = {
804 .name = "tas6424",
805 .of_match_table = of_match_ptr(tas6424_of_ids),
806 },
808 .probe = tas6424_i2c_probe,
807 .probe_new = tas6424_i2c_probe,
809 .remove = tas6424_i2c_remove,
810 .id_table = tas6424_i2c_ids,
811};
812module_i2c_driver(tas6424_i2c_driver);
813
814MODULE_AUTHOR("Andreas Dannenberg <dannenberg@ti.com>");
815MODULE_AUTHOR("Andrew F. Davis <afd@ti.com>");
816MODULE_DESCRIPTION("TAS6424 Audio amplifier driver");
817MODULE_LICENSE("GPL v2");
808 .remove = tas6424_i2c_remove,
809 .id_table = tas6424_i2c_ids,
810};
811module_i2c_driver(tas6424_i2c_driver);
812
813MODULE_AUTHOR("Andreas Dannenberg <dannenberg@ti.com>");
814MODULE_AUTHOR("Andrew F. Davis <afd@ti.com>");
815MODULE_DESCRIPTION("TAS6424 Audio amplifier driver");
816MODULE_LICENSE("GPL v2");