linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
To: Dimitar Penev <dpenev-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: general question: spi framework
Date: Fri, 28 May 2010 13:45:48 +0300	[thread overview]
Message-ID: <20100528104548.GA20462@tarshish> (raw)
In-Reply-To: <875452.33839.qm-cP32haYabaOvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>

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------------{=
   - baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.2.679.5364, http://www.tkos.co.il -

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

      parent reply	other threads:[~2010-05-28 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-28 10:40 general question: spi framework Dimitar Penev
     [not found] ` <875452.33839.qm-cP32haYabaOvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2010-05-28 10:45   ` Baruch Siach [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100528104548.GA20462@tarshish \
    --to=baruch-nswtu9s1w3p6gbpvegmw2w@public.gmane.org \
    --cc=dpenev-/E1597aS9LQAvxtiuMwx3w@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).