More /proc write fixes
Subsystems (2)
Hi!
This fixes writing to some more /proc entries. Please apply,
Pavel
drivers/acpi/thermal.c +8 -6
@@ -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 ;
Signature · 2 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?]