All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Jonathan Cameron <jic23@cam.ac.uk>
Cc: LKML <linux-kernel@vger.kernel.org>,
	David Brownell <david-b@pacbell.net>
Subject: Re: Standard handling of boolean attributes in sysfs.
Date: Mon, 21 Mar 2011 13:14:11 -0700	[thread overview]
Message-ID: <20110321201411.GA1704@kroah.com> (raw)
In-Reply-To: <4D87AEE0.8000807@cam.ac.uk>

On Mon, Mar 21, 2011 at 08:02:40PM +0000, Jonathan Cameron wrote:
> Hi All,
> 
> Just wondering what the feeling would be about having
> a utility function similar to sysfs_streq to provide a
> consistent option for all those sysfs attributes out there
> where
> 
> 1, on, true -> 1
> 0, off, false -> 0
> 
> Or does such a beast already exist and I'm just being unobservant?

We have the one in debugfs that I think people use for sysfs.  Have you
looked at that?

thanks,

greg k-h

  reply	other threads:[~2011-03-21 20:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 20:02 Standard handling of boolean attributes in sysfs Jonathan Cameron
2011-03-21 20:14 ` Greg KH [this message]
2011-03-22 10:59   ` Jonathan Cameron
2011-03-22 22:30     ` Greg KH
2011-03-23 10:53       ` 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=20110321201411.GA1704@kroah.com \
    --to=greg@kroah.com \
    --cc=david-b@pacbell.net \
    --cc=jic23@cam.ac.uk \
    --cc=linux-kernel@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.