Skip to content

Commit 38a234b

Browse files
miniplirafaeljw
authored andcommitted
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]>
1 parent 1683098 commit 38a234b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/acpi_pnp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static struct acpi_scan_handler acpi_pnp_handler = {
367367
*/
368368
static int is_cmos_rtc_device(struct acpi_device *adev)
369369
{
370-
struct acpi_device_id ids[] = {
370+
static const struct acpi_device_id ids[] = {
371371
{ "PNP0B00" },
372372
{ "PNP0B01" },
373373
{ "PNP0B02" },

0 commit comments

Comments
 (0)