aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/sbs.c')
-rw-r--r--drivers/acpi/sbs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index 6050ce481873..1e3cf989196b 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -479,9 +479,9 @@ static int
479acpi_sbs_add_fs(struct proc_dir_entry **dir, 479acpi_sbs_add_fs(struct proc_dir_entry **dir,
480 struct proc_dir_entry *parent_dir, 480 struct proc_dir_entry *parent_dir,
481 char *dir_name, 481 char *dir_name,
482 struct file_operations *info_fops, 482 const struct file_operations *info_fops,
483 struct file_operations *state_fops, 483 const struct file_operations *state_fops,
484 struct file_operations *alarm_fops, void *data) 484 const struct file_operations *alarm_fops, void *data)
485{ 485{
486 if (!*dir) { 486 if (!*dir) {
487 *dir = proc_mkdir(dir_name, parent_dir); 487 *dir = proc_mkdir(dir_name, parent_dir);
@@ -677,7 +677,7 @@ static int acpi_battery_alarm_open_fs(struct inode *inode, struct file *file)
677 return single_open(file, acpi_battery_read_alarm, PDE(inode)->data); 677 return single_open(file, acpi_battery_read_alarm, PDE(inode)->data);
678} 678}
679 679
680static struct file_operations acpi_battery_info_fops = { 680static const struct file_operations acpi_battery_info_fops = {
681 .open = acpi_battery_info_open_fs, 681 .open = acpi_battery_info_open_fs,
682 .read = seq_read, 682 .read = seq_read,
683 .llseek = seq_lseek, 683 .llseek = seq_lseek,
@@ -685,7 +685,7 @@ static struct file_operations acpi_battery_info_fops = {
685 .owner = THIS_MODULE, 685 .owner = THIS_MODULE,
686}; 686};
687 687
688static struct file_operations acpi_battery_state_fops = { 688static const struct file_operations acpi_battery_state_fops = {
689 .open = acpi_battery_state_open_fs, 689 .open = acpi_battery_state_open_fs,
690 .read = seq_read, 690 .read = seq_read,
691 .llseek = seq_lseek, 691 .llseek = seq_lseek,
@@ -693,7 +693,7 @@ static struct file_operations acpi_battery_state_fops = {
693 .owner = THIS_MODULE, 693 .owner = THIS_MODULE,
694}; 694};
695 695
696static struct file_operations acpi_battery_alarm_fops = { 696static const struct file_operations acpi_battery_alarm_fops = {
697 .open = acpi_battery_alarm_open_fs, 697 .open = acpi_battery_alarm_open_fs,
698 .read = seq_read, 698 .read = seq_read,
699 .write = acpi_battery_write_alarm, 699 .write = acpi_battery_write_alarm,
@@ -725,7 +725,7 @@ static int acpi_ac_state_open_fs(struct inode *inode, struct file *file)
725 return single_open(file, acpi_ac_read_state, PDE(inode)->data); 725 return single_open(file, acpi_ac_read_state, PDE(inode)->data);
726} 726}
727 727
728static struct file_operations acpi_ac_state_fops = { 728static const struct file_operations acpi_ac_state_fops = {
729 .open = acpi_ac_state_open_fs, 729 .open = acpi_ac_state_open_fs,
730 .read = seq_read, 730 .read = seq_read,
731 .llseek = seq_lseek, 731 .llseek = seq_lseek,