public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Fix thermal/cooling mode and thermal/polling frequency
@ 2003-01-24 14:22 Pavel Machek
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2003-01-24 14:22 UTC (permalink / raw)
  To: Andrew Grover, ACPI mailing list

Hi!

This should fix two more files in proc... Please apply,
								Pavel

--- clean/drivers/acpi/thermal.c	2003-01-17 23:09:34.000000000 +0100
+++ linux-swsusp/drivers/acpi/thermal.c	2003-01-24 14:00:29.000000000 +0100
@@ -946,10 +950,11 @@
 	struct file		*file,
 	const char		*buffer,
 	unsigned long		count,
-	void			*data)
+	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,10 +1011,11 @@
 	struct file		*file,
 	const char		*buffer,
 	unsigned long		count,
-	void			*data)
+	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;
 


-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Fix thermal/cooling mode and thermal/polling frequency
@ 2003-01-26 16:54 Paul Giordano
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Giordano @ 2003-01-26 16:54 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 69 bytes --]

I believe you also need to add the seq_file.h header to thermal.c...

[-- Attachment #2: Type: text/html, Size: 297 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-26 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-24 14:22 Fix thermal/cooling mode and thermal/polling frequency Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2003-01-26 16:54 Paul Giordano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox