proc.c (dca3a783400a18e2bf4503b1d4a85c4d0ca1a7e4) | proc.c (d9dda78bad879595d8c4220a067fc029d6484a16) |
---|---|
1#include <linux/proc_fs.h> 2#include <linux/seq_file.h> 3#include <linux/export.h> 4#include <linux/suspend.h> 5#include <linux/bcd.h> 6#include <asm/uaccess.h> 7 8#include <acpi/acpi_bus.h> --- 106 unchanged lines hidden (view full) --- 115 (min > 59) ? seq_puts(seq, "**:") : seq_printf(seq, "%2.2u:", min); 116 (sec > 59) ? seq_puts(seq, "**\n") : seq_printf(seq, "%2.2u\n", sec); 117 118 return 0; 119} 120 121static int acpi_system_alarm_open_fs(struct inode *inode, struct file *file) 122{ | 1#include <linux/proc_fs.h> 2#include <linux/seq_file.h> 3#include <linux/export.h> 4#include <linux/suspend.h> 5#include <linux/bcd.h> 6#include <asm/uaccess.h> 7 8#include <acpi/acpi_bus.h> --- 106 unchanged lines hidden (view full) --- 115 (min > 59) ? seq_puts(seq, "**:") : seq_printf(seq, "%2.2u:", min); 116 (sec > 59) ? seq_puts(seq, "**\n") : seq_printf(seq, "%2.2u\n", sec); 117 118 return 0; 119} 120 121static int acpi_system_alarm_open_fs(struct inode *inode, struct file *file) 122{ |
123 return single_open(file, acpi_system_alarm_seq_show, PDE(inode)->data); | 123 return single_open(file, acpi_system_alarm_seq_show, PDE_DATA(inode)); |
124} 125 126static int get_date_field(char **p, u32 * value) 127{ 128 char *next = NULL; 129 char *string_end = NULL; 130 int result = -EINVAL; 131 --- 260 unchanged lines hidden (view full) --- 392 mutex_unlock(&acpi_device_lock); 393 return count; 394} 395 396static int 397acpi_system_wakeup_device_open_fs(struct inode *inode, struct file *file) 398{ 399 return single_open(file, acpi_system_wakeup_device_seq_show, | 124} 125 126static int get_date_field(char **p, u32 * value) 127{ 128 char *next = NULL; 129 char *string_end = NULL; 130 int result = -EINVAL; 131 --- 260 unchanged lines hidden (view full) --- 392 mutex_unlock(&acpi_device_lock); 393 return count; 394} 395 396static int 397acpi_system_wakeup_device_open_fs(struct inode *inode, struct file *file) 398{ 399 return single_open(file, acpi_system_wakeup_device_seq_show, |
400 PDE(inode)->data); | 400 PDE_DATA(inode)); |
401} 402 403static const struct file_operations acpi_system_wakeup_device_fops = { 404 .owner = THIS_MODULE, 405 .open = acpi_system_wakeup_device_open_fs, 406 .read = seq_read, 407 .write = acpi_system_write_wakeup_device, 408 .llseek = seq_lseek, --- 44 unchanged lines hidden --- | 401} 402 403static const struct file_operations acpi_system_wakeup_device_fops = { 404 .owner = THIS_MODULE, 405 .open = acpi_system_wakeup_device_open_fs, 406 .read = seq_read, 407 .write = acpi_system_write_wakeup_device, 408 .llseek = seq_lseek, --- 44 unchanged lines hidden --- |