All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roland Stigge <stigge@antcom.de>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Use of swab16() in drivers/hwmon/*.c
Date: Fri, 07 Jan 2011 12:56:55 +0000	[thread overview]
Message-ID: <4D270D97.9040509@antcom.de> (raw)
In-Reply-To: <4D26ECDB.7010602@antcom.de>

Hi,

On 01/07/2011 11:59 AM, Jean Delvare wrote:
> This has nothing to do with the host's endianess. This has to do with
> the fact that the SMBus specification says that words are sent low byte
> first but almost all hardware monitoring devices send the high byte
> first (because it makes a lot more sense.)

Thanks! I just ignored that the word implementation of Linux' SMBus
(I2C_SMBUS_WORD_DATA etc.) already takes care of that.

bye,
  Roland

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2011-01-07 12:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07 10:37 [lm-sensors] Use of swab16() in drivers/hwmon/*.c Roland Stigge
2011-01-07 10:59 ` Jean Delvare
2011-01-07 12:56 ` Roland Stigge [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=4D270D97.9040509@antcom.de \
    --to=stigge@antcom.de \
    --cc=lm-sensors@vger.kernel.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.