All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Jonathan Cameron <jic23-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
Cc: Hugo Meric <hugo.meric-Qt13gs6zZMY@public.gmane.org>,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: HMC6343
Date: Tue, 7 Jul 2009 14:20:06 +0200	[thread overview]
Message-ID: <20090707142006.2c998ba7@hyperion.delvare> (raw)
In-Reply-To: <4A53375B.9070304-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>

On Tue, 07 Jul 2009 11:54:03 +0000, Jonathan Cameron wrote:
> Jean Delvare wrote:
> > Note: this could be done from userspace too if needed. The i2c-dev
> > interface supports raw reads and writes.
> > 
> Good point, I'd missed that functionality (did seem a little odd
> that I couldn't find it!)
> 
> Method's much the same, but involves using the relevant ioctl
> (I2C_RDWR), in conjunction iwth an appropriately filled
> i2c_rdwr_ioctl_data structure.
> 
> The i2c_smbus_access function in i2c-dev.h (lm-sensors version)
> is similar enough to show how to do it.

Actually: i2c-tools version of i2c-dev.h

As some point in the future I'll try to get it generated from the
kernel's one so that it gets integrated into the standard
kernel-headers package. But this involves moving some of the helper
functions to a new library and I could never find the time to set this
up.

-- 
Jean Delvare

  parent reply	other threads:[~2009-07-07 12:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-07  1:04 [lm-sensors] HMC6343 Hugo Meric
2009-07-07  7:59 ` Jean Delvare
     [not found]   ` <20090707095934.7b86524f-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-07-07 11:38     ` Jonathan Cameron
     [not found]       ` <4A5333C6.3080802-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-07 11:46         ` Jean Delvare
     [not found]           ` <20090707134638.6ff1b324-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-07-07 11:54             ` Jonathan Cameron
     [not found]               ` <4A53375B.9070304-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-07 12:20                 ` Jean Delvare [this message]
     [not found]               ` <874671.80619.qm@web28313.mail.ukl.yahoo.com>
     [not found]                 ` <874671.80619.qm-KpgP/9vcbyPGRxTy+Q50vsz6deESKz/lQQ4Iyu8u01E@public.gmane.org>
2009-07-08 10:37                   ` Re : " Jonathan Cameron

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=20090707142006.2c998ba7@hyperion.delvare \
    --to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
    --cc=hugo.meric-Qt13gs6zZMY@public.gmane.org \
    --cc=jic23-KWPb1pKIrIJaa/9Udqfwiw@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 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.