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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user