| .. | .. |
|---|
| 1 | | -/* |
|---|
| 2 | | - * wakeirq.c - Device wakeirq helper functions |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 6 | | - * published by the Free Software Foundation. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed "as is" WITHOUT ANY WARRANTY of any |
|---|
| 9 | | - * kind, whether express or implied; without even the implied warranty |
|---|
| 10 | | - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | | - */ |
|---|
| 13 | | - |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | +/* Device wakeirq helper functions */ |
|---|
| 14 | 3 | #include <linux/device.h> |
|---|
| 15 | 4 | #include <linux/interrupt.h> |
|---|
| 16 | 5 | #include <linux/irq.h> |
|---|
| .. | .. |
|---|
| 283 | 272 | { |
|---|
| 284 | 273 | struct wake_irq *wirq = dev->power.wakeirq; |
|---|
| 285 | 274 | |
|---|
| 286 | | - if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK))) |
|---|
| 275 | + if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK)) |
|---|
| 287 | 276 | return; |
|---|
| 288 | 277 | |
|---|
| 289 | 278 | if (likely(wirq->status & WAKE_IRQ_DEDICATED_MANAGED)) { |
|---|
| .. | .. |
|---|
| 310 | 299 | { |
|---|
| 311 | 300 | struct wake_irq *wirq = dev->power.wakeirq; |
|---|
| 312 | 301 | |
|---|
| 313 | | - if (!wirq || !((wirq->status & WAKE_IRQ_DEDICATED_MASK))) |
|---|
| 302 | + if (!wirq || !(wirq->status & WAKE_IRQ_DEDICATED_MASK)) |
|---|
| 314 | 303 | return; |
|---|
| 315 | 304 | |
|---|
| 316 | 305 | if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED) |
|---|