Source
12
12
* Free Software Foundation; either version 2 of the License, or (at your
13
13
* option) any later version.
14
14
*
15
15
* NOTE: This driver does not yet support subtractive ADC mode, which means
16
16
* you can do only one measurement per read request.
17
17
*/
18
18
19
19
#include <linux/kernel.h>
20
20
#include <linux/slab.h>
21
21
#include <linux/module.h>
22
-
#include <linux/init.h>
23
22
#include <linux/device.h>
24
23
#include <linux/platform_device.h>
25
24
#include <linux/completion.h>
26
25
27
26
#include <linux/mfd/pcf50633/core.h>
28
27
#include <linux/mfd/pcf50633/adc.h>
29
28
30
29
struct pcf50633_adc_request {
31
30
int mux;
32
31
int avg;