public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Kaiwan N Billimoria <kaiwan@designergraphix.com>
Cc: philippe.seewer@bfh.ch, linux-kernel@vger.kernel.org
Subject: Re: Stuck creating sysfs hooks for a driver..
Date: Thu, 16 Feb 2006 08:41:08 -0800	[thread overview]
Message-ID: <20060216164108.GA12420@kroah.com> (raw)
In-Reply-To: <43F46319.9090400@designergraphix.com>

On Thu, Feb 16, 2006 at 05:03:45PM +0530, Kaiwan N Billimoria wrote:
> One thing i'd like to point out though, Greg: the LM70 is an 
> SPI/Microwire based system and not i2c; so straight away, the i2c 
> interface by itself will not be used...; also, the specific board 
> (LM70CILD-3, which i've written the 2.4 driver for & am now porting to 
> 2.6), comes with a built-in parport interface..so that's what the driver 
> takes into account of course..

That's fine, you do not have to be a i2c driver to use the hwmon
interface.  There are other drivers in the drivers/hwmon/ directory
today that are not i2c drivers.  It is not a requirement at all.

> Also it's a relatively simple temperature sensor - it does not seem to 
> support hysteresis temperature, i/p voltages, etc. I'm saying all this 
> as the sysfs interface i envision is just a simple read-only hook: the 
> o/p value (after a little userspace massaging) is the temperature in 
> Celsius correct to 0.25 degrees. So it looks to me that this particular 
> driver necessitates a kind-of "custom" entry under /sys/class/hwmon with 
> it's own userspace support. Do I move ahead in this direction?

No.  Use the same names for your files as is described in the document.
If you can't provide all of the different files, that's fine, just
provide what you can.  The userspace tools will handle this properly.

This also keeps you from having to write custom userspace tools for
every individual program that wants to know this information.

thanks,

greg k-h

  parent reply	other threads:[~2006-02-16 16:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-15  7:54 Stuck creating sysfs hooks for a driver Kaiwan N Billimoria
2006-02-15 22:13 ` Greg KH
2006-02-16 11:33   ` Kaiwan N Billimoria
2006-02-16 12:16     ` Arjan van de Ven
2006-02-16 16:41     ` Greg KH [this message]
2006-02-19 13:23     ` Jean Delvare
2006-02-21  6:18       ` Kaiwan N Billimoria
2006-03-31  6:01       ` SPI <-> Parport (light) bridge code (Re: Stuck creating sysfs hooks for a driver..) Kaiwan N Billimoria
     [not found] <pan.2006.02.15.08.46.27.708727@bfh.ch>
2006-02-15  8:48 ` Stuck creating sysfs hooks for a driver Seewer Philippe

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=20060216164108.GA12420@kroah.com \
    --to=greg@kroah.com \
    --cc=kaiwan@designergraphix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=philippe.seewer@bfh.ch \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox