mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ACPI / PNP: constify device IDs
Instead of re-creating the array on the stack each time is_cmos_rtc_device() gets called, make the array 'static const'. Signed-off-by: Mathias Krause <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
168309855a
commit
38a234b9f0
1 changed files with 1 additions and 1 deletions
|
|
@ -367,7 +367,7 @@ static struct acpi_scan_handler acpi_pnp_handler = {
|
|||
*/
|
||||
static int is_cmos_rtc_device(struct acpi_device *adev)
|
||||
{
|
||||
struct acpi_device_id ids[] = {
|
||||
static const struct acpi_device_id ids[] = {
|
||||
{ "PNP0B00" },
|
||||
{ "PNP0B01" },
|
||||
{ "PNP0B02" },
|
||||
|
|
|
|||
Loading…
Reference in a new issue