.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * drivers/acpi/resource.c - ACPI device resources interpretation. |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> |
---|
6 | 7 | * |
---|
7 | 8 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
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. |
---|
17 | 9 | * |
---|
18 | 10 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
19 | 11 | */ |
---|
.. | .. |
---|
381 | 373 | case ACPI_ACTIVE_BOTH: |
---|
382 | 374 | if (triggering == ACPI_EDGE_SENSITIVE) |
---|
383 | 375 | return IRQ_TYPE_EDGE_BOTH; |
---|
384 | | - /* fall through */ |
---|
| 376 | + fallthrough; |
---|
385 | 377 | default: |
---|
386 | 378 | return IRQ_TYPE_NONE; |
---|
387 | 379 | } |
---|
.. | .. |
---|
421 | 413 | u8 pol = p ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH; |
---|
422 | 414 | |
---|
423 | 415 | 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"); |
---|
426 | 418 | triggering = trig; |
---|
427 | 419 | polarity = pol; |
---|
428 | 420 | } |
---|
.. | .. |
---|
476 | 468 | } |
---|
477 | 469 | acpi_dev_get_irqresource(res, irq->interrupts[index], |
---|
478 | 470 | irq->triggering, irq->polarity, |
---|
479 | | - irq->sharable, true); |
---|
| 471 | + irq->shareable, true); |
---|
480 | 472 | break; |
---|
481 | 473 | case ACPI_RESOURCE_TYPE_EXTENDED_IRQ: |
---|
482 | 474 | ext_irq = &ares->data.extended_irq; |
---|
.. | .. |
---|
487 | 479 | if (is_gsi(ext_irq)) |
---|
488 | 480 | acpi_dev_get_irqresource(res, ext_irq->interrupts[index], |
---|
489 | 481 | ext_irq->triggering, ext_irq->polarity, |
---|
490 | | - ext_irq->sharable, false); |
---|
| 482 | + ext_irq->shareable, false); |
---|
491 | 483 | else |
---|
492 | 484 | acpi_dev_irqresource_disabled(res, 0); |
---|
493 | 485 | break; |
---|