Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
//
|
|
// Analog Devices ADAU7118 8 channel PDM-to-I2S/TDM Converter Standalone Hw
|
|
// driver
|
|
//
|
|
// Copyright 2019 Analog Devices Inc.
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/mod_devicetable.h>
|
|
#include <linux/platform_device.h>
|
|
|
|
#include "adau7118.h"
|
|
|
|
static int adau7118_probe_hw(struct platform_device *pdev)
|
|
{
|
|
return adau7118_probe(&pdev->dev, NULL, true);
|
|
}
|
|
|
|
static const struct of_device_id adau7118_of_match[] = {
|
|
{ .compatible = "adi,adau7118" },
|
|
{}
|
|
};
|
|
MODULE_DEVICE_TABLE(of, adau7118_of_match);
|
|
|
|
static const struct platform_device_id adau7118_id[] = {
|
|
{ .name = "adau7118" },
|
|
{ }
|
|
};
|
|
MODULE_DEVICE_TABLE(platform, adau7118_id);
|
|
|
|
static struct platform_driver adau7118_driver_hw = {
|
|
.driver = {
|
|
.name = "adau7118",
|
|
.of_match_table = adau7118_of_match,
|
|
},
|
|
.probe = adau7118_probe_hw,
|
|
.id_table = adau7118_id,
|
|
};
|
|
module_platform_driver(adau7118_driver_hw);
|
|
|
|
MODULE_AUTHOR("Nuno Sa <nuno.sa@analog.com>");
|
|
MODULE_DESCRIPTION("ADAU7118 8 channel PDM-to-I2S/TDM Converter driver for standalone hw mode");
|
|
MODULE_LICENSE("GPL");
|