#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <sound/soc.h>
#define DRV_NAME …
struct ssm2305 { … };
static int ssm2305_power_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kctrl, int event)
{ … }
static const struct snd_soc_dapm_widget ssm2305_dapm_widgets[] = …;
static const struct snd_soc_dapm_route ssm2305_dapm_routes[] = …;
static const struct snd_soc_component_driver ssm2305_component_driver = …;
static int ssm2305_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id ssm2305_of_match[] = …;
MODULE_DEVICE_TABLE(of, ssm2305_of_match);
#endif
static struct platform_driver ssm2305_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;