aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sbs.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-04-05 01:51:16 -0400
committerLen Brown <len.brown@intel.com>2009-04-05 01:51:16 -0400
commite2fae0abf6a9c7a2da1a481b7adb4e24f7778992 (patch)
treedbf0007632ca651baa9c7193b0ead3547c656c33 /drivers/acpi/sbs.c
parentfff251f6b26bb8f4de15fa5906cf2611623b3661 (diff)
parentc07c9a78a95cab0a9bf0b253d0c52e7798af38c5 (diff)
Merge branch 'constify' into release
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 3963cb6e0f19..bb8fd1b6054b 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -484,9 +484,9 @@ static int
484acpi_sbs_add_fs(struct proc_dir_entry **dir, 484acpi_sbs_add_fs(struct proc_dir_entry **dir,
485 struct proc_dir_entry *parent_dir, 485 struct proc_dir_entry *parent_dir,
486 char *dir_name, 486 char *dir_name,
487 struct file_operations *info_fops, 487 const struct file_operations *info_fops,
488 struct file_operations *state_fops, 488 const struct file_operations *state_fops,
489 struct file_operations *alarm_fops, void *data) 489 const struct file_operations *alarm_fops, void *data)
490{ 490{
491 if (!*dir) { 491 if (!*dir) {
492 *dir = proc_mkdir(dir_name, parent_dir); 492 *dir = proc_mkdir(dir_name, parent_dir);
@@ -682,7 +682,7 @@ static int acpi_battery_alarm_open_fs(struct inode *inode, struct file *file)
682 return single_open(file, acpi_battery_read_alarm, PDE(inode)->data); 682 return single_open(file, acpi_battery_read_alarm, PDE(inode)->data);
683} 683}
684 684
685static struct file_operations acpi_battery_info_fops = { 685static const struct file_operations acpi_battery_info_fops = {
686 .open = acpi_battery_info_open_fs, 686 .open = acpi_battery_info_open_fs,
687 .read = seq_read, 687 .read = seq_read,
688 .llseek = seq_lseek, 688 .llseek = seq_lseek,
@@ -690,7 +690,7 @@ static struct file_operations acpi_battery_info_fops = {
690 .owner = THIS_MODULE, 690 .owner = THIS_MODULE,
691}; 691};
692 692
693static struct file_operations acpi_battery_state_fops = { 693static const struct file_operations acpi_battery_state_fops = {
694 .open = acpi_battery_state_open_fs, 694 .open = acpi_battery_state_open_fs,
695 .read = seq_read, 695 .read = seq_read,
696 .llseek = seq_lseek, 696 .llseek = seq_lseek,
@@ -698,7 +698,7 @@ static struct file_operations acpi_battery_state_fops = {
698 .owner = THIS_MODULE, 698 .owner = THIS_MODULE,
699}; 699};
700 700
701static struct file_operations acpi_battery_alarm_fops = { 701static const struct file_operations acpi_battery_alarm_fops = {
702 .open = acpi_battery_alarm_open_fs, 702 .open = acpi_battery_alarm_open_fs,
703 .read = seq_read, 703 .read = seq_read,
704 .write = acpi_battery_write_alarm, 704 .write = acpi_battery_write_alarm,
@@ -730,7 +730,7 @@ static int acpi_ac_state_open_fs(struct inode *inode, struct file *file)
730 return single_open(file, acpi_ac_read_state, PDE(inode)->data); 730 return single_open(file, acpi_ac_read_state, PDE(inode)->data);
731} 731}
732 732
733static struct file_operations acpi_ac_state_fops = { 733static const struct file_operations acpi_ac_state_fops = {
734 .open = acpi_ac_state_open_fs, 734 .open = acpi_ac_state_open_fs,
735 .read = seq_read, 735 .read = seq_read,
736 .llseek = seq_lseek, 736 .llseek = seq_lseek,