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!
|