From: Greg KH <greg@kroah.com>
To: "Eugeny S. Mints" <eugeny.mints@gmail.com>
Cc: pm list <linux-pm@lists.osdl.org>
Subject: Re: [PATCH] PowerOP, PowerOP Sysfs 2/3
Date: Thu, 24 Aug 2006 22:58:18 -0700 [thread overview]
Message-ID: <20060825055818.GB24226@kroah.com> (raw)
In-Reply-To: <44ECFCE2.4040806@gmail.com>
On Thu, Aug 24, 2006 at 05:12:02AM +0400, Eugeny S. Mints wrote:
> Reference SysFS code for PowerOP
> diff --git a/drivers/powerop/Kconfig b/drivers/powerop/Kconfig
> index 94d2459..fe5c946 100644
> --- a/drivers/powerop/Kconfig
> +++ b/drivers/powerop/Kconfig
> @@ -8,5 +8,10 @@ config POWEROP
> bool "PowerOP Core"
> help
>
> +config POWEROP_SYSFS
> + bool " Enable PowerOP sysfs interface"
> + depends on POWEROP && SYSFS
> + help
Why would you not want this? Why not always force it enabled?
> +static ssize_t active_store(struct subsystem * subsys, const char * buf,
> + size_t n)
> +{
> + int error;
> +
> + error = powerop_set_point(buf);
> + if (error != 0)
> + return error;
> +
> + strcpy(active_name, buf);
> + return n;
> +}
This seems to be an abuse of the "one value per file" rule of sysfs,
right?
> + if ((error = subsystem_register(&powerop_subsys))) {
So now there is both a /sys/power and /sys/powerop? That will be
confusing for everyone, why not just use the /sys/power place?
thanks,
greg k-h
prev parent reply other threads:[~2006-08-25 5:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 1:12 [PATCH] PowerOP, PowerOP Sysfs 2/3 Eugeny S. Mints
2006-08-25 5:58 ` Greg KH [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=20060825055818.GB24226@kroah.com \
--to=greg@kroah.com \
--cc=eugeny.mints@gmail.com \
--cc=linux-pm@lists.osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox