hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/acpi/resource.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * drivers/acpi/resource.c - ACPI device resources interpretation.
34 *
....@@ -5,15 +6,6 @@
56 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
67 *
78 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as published
11
- * by the Free Software Foundation.
12
- *
13
- * This program is distributed in the hope that it will be useful, but
14
- * WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- * General Public License for more details.
179 *
1810 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1911 */
....@@ -381,7 +373,7 @@
381373 case ACPI_ACTIVE_BOTH:
382374 if (triggering == ACPI_EDGE_SENSITIVE)
383375 return IRQ_TYPE_EDGE_BOTH;
384
- /* fall through */
376
+ fallthrough;
385377 default:
386378 return IRQ_TYPE_NONE;
387379 }
....@@ -421,8 +413,8 @@
421413 u8 pol = p ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH;
422414
423415 if (triggering != trig || polarity != pol) {
424
- pr_warning("ACPI: IRQ %d override to %s, %s\n", gsi,
425
- t ? "level" : "edge", p ? "low" : "high");
416
+ pr_warn("ACPI: IRQ %d override to %s, %s\n", gsi,
417
+ t ? "level" : "edge", p ? "low" : "high");
426418 triggering = trig;
427419 polarity = pol;
428420 }
....@@ -476,7 +468,7 @@
476468 }
477469 acpi_dev_get_irqresource(res, irq->interrupts[index],
478470 irq->triggering, irq->polarity,
479
- irq->sharable, true);
471
+ irq->shareable, true);
480472 break;
481473 case ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
482474 ext_irq = &ares->data.extended_irq;
....@@ -487,7 +479,7 @@
487479 if (is_gsi(ext_irq))
488480 acpi_dev_get_irqresource(res, ext_irq->interrupts[index],
489481 ext_irq->triggering, ext_irq->polarity,
490
- ext_irq->sharable, false);
482
+ ext_irq->shareable, false);
491483 else
492484 acpi_dev_irqresource_disabled(res, 0);
493485 break;