* Re: How to use kernel driver from API
[not found] ` <B58E802D256349F0869077707DC18A22-WSjMtQqgRZmL4CcANOAtMQ@public.gmane.org>
@ 2009-06-23 15:56 ` Daniel Mack
0 siblings, 0 replies; only message in thread
From: Daniel Mack @ 2009-06-23 15:56 UTC (permalink / raw)
To: Klemen Omejc; +Cc: linux-kernel, linux-i2c-u79uwXL29TY76Z2rM5mHXA
(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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-23 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <B58E802D256349F0869077707DC18A22@ISKRAMEDICAL.SI>
[not found] ` <B58E802D256349F0869077707DC18A22-WSjMtQqgRZmL4CcANOAtMQ@public.gmane.org>
2009-06-23 15:56 ` How to use kernel driver from API Daniel Mack
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).