aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c/include/plat/adc.h
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-07-18 10:12:27 +0100
committerBen Dooks <ben-linux@fluff.org>2009-07-18 10:15:53 +0100
commite170adcb406504b8acd35554c69830c11916be1f (patch)
tree75a8aeb283e39d1b9b82bebfe347eb6c64def65f /arch/arm/plat-s3c/include/plat/adc.h
parentARM: BAST: Add hwmon device information (diff)
downloadlinux-dev-e170adcb406504b8acd35554c69830c11916be1f.tar.xz
linux-dev-e170adcb406504b8acd35554c69830c11916be1f.zip
ARM: S3C: Add ADC synchronous read call.
To add HWMON support, we need a synchronous read() call that blocks until completion. Add the client that is being service to the select and convert callbacks to make the code easier. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to '')
-rw-r--r--arch/arm/plat-s3c/include/plat/adc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c/include/plat/adc.h b/arch/arm/plat-s3c/include/plat/adc.h
index d847bd476b6c..5f3b1cd53b90 100644
--- a/arch/arm/plat-s3c/include/plat/adc.h
+++ b/arch/arm/plat-s3c/include/plat/adc.h
@@ -19,10 +19,14 @@ struct s3c_adc_client;
extern int s3c_adc_start(struct s3c_adc_client *client,
unsigned int channel, unsigned int nr_samples);
+extern int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch);
+
extern struct s3c_adc_client *
s3c_adc_register(struct platform_device *pdev,
- void (*select)(unsigned selected),
- void (*conv)(unsigned d0, unsigned d1,
+ void (*select)(struct s3c_adc_client *client,
+ unsigned selected),
+ void (*conv)(struct s3c_adc_client *client,
+ unsigned d0, unsigned d1,
unsigned *samples_left),
unsigned int is_ts);