I would like to read adc value in character device driver.
While i was lookiing for any information related to adc, i found http://processors.wiki.ti.com/index.php/AM335x_ADC_Driver's_Guide.
But it just shows how to use adc in user space like application.
I have tried to find it. but i think adc is composed in sysfs device driver.
I have 2 questions.
first, is there any way to call the function from sysfs?
(the location i'm gonna in is character device driver.)
second, is there other ways to read adc value in character device driver??
help me anyone who can know well.
thank you for reading long my sentences.
I hope to see anwser about my question, :)