diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2011-06-25 21:07:52 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-07-16 18:36:17 -0400 |
commit | 9c8b04be443b33939f374a811c82abeebe0a61d1 (patch) | |
tree | 9d6e3e682e9f1bbcdae726830f54430e860c7fa6 /include/acpi/acpi_drivers.h | |
parent | e545b55a1e980cbb6a158886286106bbf39722b1 (diff) | |
download | blackbird-obmc-linux-9c8b04be443b33939f374a811c82abeebe0a61d1.tar.gz blackbird-obmc-linux-9c8b04be443b33939f374a811c82abeebe0a61d1.zip |
ACPI: constify ops structs
Structs battery_file, acpi_dock_ops, file_operations,
thermal_cooling_device_ops, thermal_zone_device_ops, kernel_param_ops
are not changed in runtime. It is safe to make them const.
register_hotplug_dock_device() was altered to take const "ops" argument
to respect acpi_dock_ops' const notion.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acpi_drivers.h')
-rw-r--r-- | include/acpi/acpi_drivers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 3090471b2a5e..e49c36d38d7e 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h @@ -128,7 +128,7 @@ extern int is_dock_device(acpi_handle handle); extern int register_dock_notifier(struct notifier_block *nb); extern void unregister_dock_notifier(struct notifier_block *nb); extern int register_hotplug_dock_device(acpi_handle handle, - struct acpi_dock_ops *ops, + const struct acpi_dock_ops *ops, void *context); extern void unregister_hotplug_dock_device(acpi_handle handle); #else |