diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-07-04 13:06:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-07-10 00:04:29 -0400 |
commit | d75080328affb4b268da430b7074cc8139cc662a (patch) | |
tree | ea743887a7a2e0fd6c859d7bacbc274299f958f5 /drivers/acpi/battery.c | |
parent | e26a2b8f68dca28c734d857517788e3b40b8691d (diff) |
ACPI: add 'const' to several ACPI file_operations
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 24bf4dca88cc..6e5221707d97 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -557,7 +557,7 @@ static int acpi_battery_alarm_open_fs(struct inode *inode, struct file *file) | |||
557 | return single_open(file, acpi_battery_read_alarm, PDE(inode)->data); | 557 | return single_open(file, acpi_battery_read_alarm, PDE(inode)->data); |
558 | } | 558 | } |
559 | 559 | ||
560 | static struct file_operations acpi_battery_info_ops = { | 560 | static const struct file_operations acpi_battery_info_ops = { |
561 | .open = acpi_battery_info_open_fs, | 561 | .open = acpi_battery_info_open_fs, |
562 | .read = seq_read, | 562 | .read = seq_read, |
563 | .llseek = seq_lseek, | 563 | .llseek = seq_lseek, |
@@ -565,7 +565,7 @@ static struct file_operations acpi_battery_info_ops = { | |||
565 | .owner = THIS_MODULE, | 565 | .owner = THIS_MODULE, |
566 | }; | 566 | }; |
567 | 567 | ||
568 | static struct file_operations acpi_battery_state_ops = { | 568 | static const struct file_operations acpi_battery_state_ops = { |
569 | .open = acpi_battery_state_open_fs, | 569 | .open = acpi_battery_state_open_fs, |
570 | .read = seq_read, | 570 | .read = seq_read, |
571 | .llseek = seq_lseek, | 571 | .llseek = seq_lseek, |
@@ -573,7 +573,7 @@ static struct file_operations acpi_battery_state_ops = { | |||
573 | .owner = THIS_MODULE, | 573 | .owner = THIS_MODULE, |
574 | }; | 574 | }; |
575 | 575 | ||
576 | static struct file_operations acpi_battery_alarm_ops = { | 576 | static const struct file_operations acpi_battery_alarm_ops = { |
577 | .open = acpi_battery_alarm_open_fs, | 577 | .open = acpi_battery_alarm_open_fs, |
578 | .read = seq_read, | 578 | .read = seq_read, |
579 | .write = acpi_battery_write_alarm, | 579 | .write = acpi_battery_write_alarm, |