]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: constify ops structs
authorVasiliy Kulikov <segoon@openwall.com>
Sat, 25 Jun 2011 17:07:52 +0000 (21:07 +0400)
committerLen Brown <len.brown@intel.com>
Sat, 16 Jul 2011 22:36:17 +0000 (18:36 -0400)
commit25157f8d5d51af410c33f63e4c0d1aa70fec0059
tree9d6e3e682e9f1bbcdae726830f54430e860c7fa6
parent50cf709b0af226758cb2eb5d9fafef8e9f06c5d4
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>
12 files changed:
drivers/acpi/battery.c
drivers/acpi/dock.c
drivers/acpi/ec_sys.c
drivers/acpi/fan.c
drivers/acpi/processor_thermal.c
drivers/acpi/sysfs.c
drivers/acpi/thermal.c
drivers/acpi/video.c
drivers/ata/libata-acpi.c
drivers/pci/hotplug/acpiphp_glue.c
include/acpi/acpi_drivers.h
include/acpi/processor.h