ACPI / scan: constify first argument of struct acpi_scan_handler::match
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 9 Sep 2015 21:59:41 +0000 (23:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Sep 2015 00:56:29 +0000 (02:56 +0200)
commit636c19d38920caee61d694ef306d110d33935038
treef93552994a1598c442395e9f79a9823d50a46ad8
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ACPI / scan: constify first argument of struct acpi_scan_handler::match

One wouldn't expect a "match" function modify the string it searches
for, and indeed the only instance of the struct
acpi_scan_handler::match callback, acpi_pnp_match, can easily be
changed. While there, update its helper matching_id().

This is also preparation for constifying struct acpi_hardware_id::id.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pnp.c
include/acpi/acpi_bus.h