Merge 5.0-rc6 into driver-core-next
[linux/fpc-iii.git] / arch / arm / plat-samsung / include / plat / adc.h
blob74d1a46408c1ca07ff01bf13e99ee505040bb604
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (c) 2008 Simtec Electronics
4 * http://armlinux.simtec.co.uk/
5 * Ben Dooks <ben@simtec.co.uk>
7 * S3C ADC driver information
8 */
10 #ifndef __ASM_PLAT_ADC_H
11 #define __ASM_PLAT_ADC_H __FILE__
13 struct s3c_adc_client;
14 struct platform_device;
16 extern int s3c_adc_start(struct s3c_adc_client *client,
17 unsigned int channel, unsigned int nr_samples);
19 extern int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch);
21 extern struct s3c_adc_client *
22 s3c_adc_register(struct platform_device *pdev,
23 void (*select)(struct s3c_adc_client *client,
24 unsigned selected),
25 void (*conv)(struct s3c_adc_client *client,
26 unsigned d0, unsigned d1,
27 unsigned *samples_left),
28 unsigned int is_ts);
30 extern void s3c_adc_release(struct s3c_adc_client *client);
32 #endif /* __ASM_PLAT_ADC_H */