| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Core driver for TI TPS6586x PMIC family |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 9 | 10 | * Mike Rapoport <mike@compulab.co.il> |
|---|
| 10 | 11 | * Copyright (C) 2006-2008 Marvell International Ltd. |
|---|
| 11 | 12 | * Eric Miao <eric.miao@marvell.com> |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 14 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 15 | | - * published by the Free Software Foundation. |
|---|
| 16 | 13 | */ |
|---|
| 17 | 14 | |
|---|
| 18 | 15 | #include <linux/interrupt.h> |
|---|
| .. | .. |
|---|
| 312 | 309 | static irqreturn_t tps6586x_irq(int irq, void *data) |
|---|
| 313 | 310 | { |
|---|
| 314 | 311 | struct tps6586x *tps6586x = data; |
|---|
| 315 | | - u32 acks; |
|---|
| 312 | + uint32_t acks; |
|---|
| 313 | + __le32 val; |
|---|
| 316 | 314 | int ret = 0; |
|---|
| 317 | 315 | |
|---|
| 318 | 316 | ret = tps6586x_reads(tps6586x->dev, TPS6586X_INT_ACK1, |
|---|
| 319 | | - sizeof(acks), (uint8_t *)&acks); |
|---|
| 317 | + sizeof(acks), (uint8_t *)&val); |
|---|
| 320 | 318 | |
|---|
| 321 | 319 | if (ret < 0) { |
|---|
| 322 | 320 | dev_err(tps6586x->dev, "failed to read interrupt status\n"); |
|---|
| 323 | 321 | return IRQ_NONE; |
|---|
| 324 | 322 | } |
|---|
| 325 | 323 | |
|---|
| 326 | | - acks = le32_to_cpu(acks); |
|---|
| 324 | + acks = le32_to_cpu(val); |
|---|
| 327 | 325 | |
|---|
| 328 | 326 | while (acks) { |
|---|
| 329 | 327 | int i = __ffs(acks); |
|---|