From: Pavel Machek <pavel@ucw.cz>
To: Andrew Grover <andrew.grover@intel.com>,
ACPI mailing list <acpi-devel@lists.sourceforge.net>,
kernel list <linux-kernel@vger.kernel.org>
Subject: More /proc write fixes
Date: Tue, 11 Feb 2003 19:47:14 +0100 [thread overview]
Message-ID: <20030211184714.GA24991@elf.ucw.cz> (raw)
Hi!
This fixes writing to some more /proc entries. Please apply,
Pavel
--- clean/drivers/acpi/thermal.c 2003-02-11 17:40:46.000000000 +0100
+++ linux/drivers/acpi/thermal.c 2003-02-11 17:51:08.000000000 +0100
@@ -946,11 +948,12 @@
acpi_thermal_write_cooling_mode (
struct file *file,
const char *buffer,
- size_t count,
- loff_t *data)
+ unsigned long count,
+ loff_t *ppos)
{
int result = 0;
- struct acpi_thermal *tz = (struct acpi_thermal *) data;
+ struct seq_file *m = (struct seq_file *)file->private_data;
+ struct acpi_thermal *tz = (struct acpi_thermal *) m->private;
char mode_string[12] = {'\0'};
ACPI_FUNCTION_TRACE("acpi_thermal_write_cooling_mode");
@@ -1006,11 +1009,12 @@
acpi_thermal_write_polling (
struct file *file,
const char *buffer,
- size_t count,
- loff_t *data)
+ unsigned long count,
+ loff_t *ppos)
{
+ struct seq_file *m = (struct seq_file *)file->private_data;
int result = 0;
- struct acpi_thermal *tz = (struct acpi_thermal *) data;
+ struct acpi_thermal *tz = (struct acpi_thermal *) m->private;
char polling_string[12] = {'\0'};
int seconds = 0;
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
reply other threads:[~2003-02-12 20:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030211184714.GA24991@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=acpi-devel@lists.sourceforge.net \
--cc=andrew.grover@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®