All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: Sign me up....
Date: Thu, 19 May 2005 06:25:15 +0000	[thread overview]
Message-ID: <20040910085343.M91723@linux-fr.org> (raw)
In-Reply-To: <1094750714.29203.32.camel@pavement.sandburst.com>

On Thu, 09 Sep 2004 13:25:14 -0400, Travis B. Sawyer wrote
> Also:  I'm working with a power supply that has i2c for an interface 
> to internal temperatures, faults, etc.  Some fields within the i2c 
> registers for the device are ascii.  Search the lm_sensors page I've 
> found nothing for ascii conversion for the /proc interface.  Is 
> there anything?  Granted this is a little odd in the use of 
> lm_sensors for this, but I was hoping....

There is no room for ASCII strings in the procfs interface (nor sysfs for that
matter). However, you can always carry raw ASCII code values, and convert them
back to a string in libsensors/sensors. Obviously the interface was not really
meant for that, but it is still doable. This is what is done for the Sony Vaio
EEPROMs, which contain the machine model name, serial number etc... You should
take a look at the eeprom driver, and the eeprom part of libsensors and
sensors (especially the vaio part) for an example of how this can be done.

-- 
Jean Delvare
http://khali.linux-fr.org/

           reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1094750714.29203.32.camel@pavement.sandburst.com>]

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=20040910085343.M91723@linux-fr.org \
    --to=khali@linux-fr.org \
    --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.