Hi Dimitar,

On Fri, May 28, 2010 at 03:40:18AM -0700, Dimitar Penev wrote:
> I would like to use this API from another kernel module (so kernel space)
> For me it is unclear however how to get pointer to spi_device from my kernel 
> module. In general is there somewhere an example for using of the spi 
> framework from the kernel space.  I don't want to write spi device drivers.  
> It is already written in the linux tree. I would like to use it from the 
> kernel space.     

See drivers/net/enc28j60.c (Ethernet driver), and drivers/mtd/devices/m25p80.c 
(Flash driver).

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -

------------------------------------------------------------------------------

_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to