#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/regulator/consumer.h>
#include <sound/soc.h>
struct aw8738_priv { … };
static int aw8738_drv_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{ … }
static const struct snd_soc_dapm_widget aw8738_dapm_widgets[] = …;
static const struct snd_soc_dapm_route aw8738_dapm_routes[] = …;
static const struct snd_soc_component_driver aw8738_component_driver = …;
static int aw8738_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id aw8738_of_match[] = …;
MODULE_DEVICE_TABLE(of, aw8738_of_match);
#endif
static struct platform_driver aw8738_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;