#include <linux/err.h>
#include <linux/iio/consumer.h>
#include <linux/iio/types.h>
#include <linux/input.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/slab.h>
struct adc_keys_button { … };
struct adc_keys_state { … };
static void adc_keys_poll(struct input_dev *input)
{ … }
static int adc_keys_load_keymap(struct device *dev, struct adc_keys_state *st)
{ … }
static int adc_keys_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id adc_keys_of_match[] = …;
MODULE_DEVICE_TABLE(of, adc_keys_of_match);
#endif
static struct platform_driver adc_keys_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;