All of lore.kernel.org
 help / color / mirror / Atom feed
* userspace  dev-interface linux-2.6.7
@ 2005-05-19  6:25 Nils Roeder
  2005-05-19  6:25 ` Jean Delvare
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Nils Roeder @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

hi

i use a userspace program to access /dev/i2c-0 which
uses (/doc/dev-interface)
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
which works fine in linux-2.4.x

'porting' this to linux-2.6.7 causes too many errors.
can anyone point me to the right direction so solve these ?
(i realised in 2.6.7 the smbus macros are missing in i2c-dev.h
so i am basically a bit lost...)


a more interesting question (for me at least) is -
do i actually need to do that.
just today (i must admit) i tried lmsensors for the first time, 
crosscompiled 'i2cdetect' and realised it can find all my devices 
attached to /dev/i2c-0.
so, can i read and write to the devices found by i2cdetect
(e.g 0x4b on /dev/i2c-0)
using kernel drivers rather than my userspace program,
if so how (or where can i read about it) ?

cheers,
   nils

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-06-25 11:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:25 userspace dev-interface linux-2.6.7 Nils Roeder
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Nils Roeder
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Rudolf Marek
2005-05-19  6:25 ` Nils Roeder
2005-05-19  6:25 ` Nils Roeder
2005-05-19  6:25 ` Nils Roeder
2005-05-19  6:25 ` Jean Delvare
2005-06-25 11:25 ` [lm-sensors] " Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.