Lines Matching defs:s3c_adc_client
46 struct s3c_adc_client {
56 void (*select_cb)(struct s3c_adc_client *c, unsigned selected);
57 void (*convert_cb)(struct s3c_adc_client *c,
66 struct s3c_adc_client *cur;
67 struct s3c_adc_client *ts_pend;
91 struct s3c_adc_client *client)
117 struct s3c_adc_client *next = adc->ts_pend;
121 struct s3c_adc_client, pend);
135 int s3c_adc_start(struct s3c_adc_client *client,
168 static void s3c_convert_done(struct s3c_adc_client *client,
175 int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch)
202 static void s3c_adc_default_select(struct s3c_adc_client *client,
207 struct s3c_adc_client *s3c_adc_register(struct platform_device *pdev,
208 void (*select)(struct s3c_adc_client *client,
210 void (*conv)(struct s3c_adc_client *client,
215 struct s3c_adc_client *client;
225 client = kzalloc(sizeof(struct s3c_adc_client), GFP_KERNEL);
240 void s3c_adc_release(struct s3c_adc_client *client)
253 struct s3c_adc_client *tmp;
256 tmp = list_entry(p, struct s3c_adc_client, pend);
273 struct s3c_adc_client *client = adc->cur;