hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/mfd/tps6586x.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Core driver for TI TPS6586x PMIC family
34 *
....@@ -9,10 +10,6 @@
910 * Mike Rapoport <mike@compulab.co.il>
1011 * Copyright (C) 2006-2008 Marvell International Ltd.
1112 * 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.
1613 */
1714
1815 #include <linux/interrupt.h>
....@@ -312,18 +309,19 @@
312309 static irqreturn_t tps6586x_irq(int irq, void *data)
313310 {
314311 struct tps6586x *tps6586x = data;
315
- u32 acks;
312
+ uint32_t acks;
313
+ __le32 val;
316314 int ret = 0;
317315
318316 ret = tps6586x_reads(tps6586x->dev, TPS6586X_INT_ACK1,
319
- sizeof(acks), (uint8_t *)&acks);
317
+ sizeof(acks), (uint8_t *)&val);
320318
321319 if (ret < 0) {
322320 dev_err(tps6586x->dev, "failed to read interrupt status\n");
323321 return IRQ_NONE;
324322 }
325323
326
- acks = le32_to_cpu(acks);
324
+ acks = le32_to_cpu(val);
327325
328326 while (acks) {
329327 int i = __ffs(acks);