From: Daniel Mack <daniel-rDUAYElUppE@public.gmane.org>
To: Klemen Omejc <klemen10-K/Me5RvSL+peoWH0uzbU5w@public.gmane.org>
Cc: linux-kernel
<linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org>,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: How to use kernel driver from API
Date: Tue, 23 Jun 2009 17:56:29 +0200 [thread overview]
Message-ID: <20090623155629.GK29236@buzzloop.caiaq.de> (raw)
In-Reply-To: <B58E802D256349F0869077707DC18A22-WSjMtQqgRZmL4CcANOAtMQ@public.gmane.org>
(cc linux-i2c)
On Tue, Jun 23, 2009 at 08:51:16AM +0200, Klemen Omejc wrote:
> I using trizepsIV module with PXA27x and ConXs board, kernel 2.6.20.
>
> I would like to have access to driver for RTC PCF8593 (PCF8583) on I2C bus
> from my FLTK application. What is the easy way to do that.
You need to have an i2c_board_info struct to instanciate the driver from
your board support code. Pass in the driver's names and the addresses,
then call i2c_register_board_info(). You can also have a look at how
others do that in arch/arm/mach-pxa/*.
However, I'm not quite sure whether that mechanism is also valid for
kernel 2.6.20. If it isn't, you should consider updating to something
more recent.
> Probably than I could also connect to EEPROM and temperature sensors on
> the same way.
Yes, that works for all devices connected to I2C.
Daniel
parent reply other threads:[~2009-06-23 15:56 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <B58E802D256349F0869077707DC18A22-WSjMtQqgRZmL4CcANOAtMQ@public.gmane.org>]
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=20090623155629.GK29236@buzzloop.caiaq.de \
--to=daniel-rduayeluppe@public.gmane.org \
--cc=klemen10-K/Me5RvSL+peoWH0uzbU5w@public.gmane.org \
--cc=linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@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).