#include <linux/acpi.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <sound/soc.h>
struct adau7002_priv { … };
static int adau7002_aif_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{ … }
static int adau7002_component_probe(struct snd_soc_component *component)
{ … }
static const struct snd_soc_dapm_widget adau7002_widgets[] = …;
static const struct snd_soc_dapm_route adau7002_routes[] = …;
static struct snd_soc_dai_driver adau7002_dai = …;
static const struct snd_soc_component_driver adau7002_component_driver = …;
static int adau7002_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id adau7002_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, adau7002_dt_ids);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id adau7002_acpi_match[] = …;
MODULE_DEVICE_TABLE(acpi, adau7002_acpi_match);
#endif
static struct platform_driver adau7002_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;