LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Custom Kernel Module: How may I access my ADC (mcp3208) via SPI within my custom driver? (https://www.linuxquestions.org/questions/programming-9/custom-kernel-module-how-may-i-access-my-adc-mcp3208-via-spi-within-my-custom-driver-4175626035/)

d3adwood 03-21-2018 01:04 PM

Custom Kernel Module: How may I access my ADC (mcp3208) via SPI within my custom driver?
 
I've created my own dts to map the mcp320x protocol driver to iio device.
I have already access and can read the values from userspace. But I need access within my linux controller driver(within kernel space).

Which linux kernel API and functions should I use to claim a ref* ?

Thanks in advanced!


All times are GMT -5. The time now is 07:46 PM.