Currently IMX6 spi master is working with spidev driver and user application.
How can I access the driver in kernel space itself?? I want to send some commands for system halt through SPI.
Where can I obtain spi_device pointer?? Can I use to_spi_device(dev) with dev information from platform_data.
Suggest me the way to get spi_device pointer in kernel.