mfd: twl4030-irq: Fix cast to restricted __le32 warning
authorLee Jones <lee.jones@linaro.org>
Tue, 23 Jun 2020 08:01:07 +0000 (09:01 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 6 Jul 2020 07:31:53 +0000 (08:31 +0100)
Silences Sparse warning(s):

 drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32
 drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32
 drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32
 drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32
 drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32
 drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32

Cc: Tony Lindgren <tony@atomide.com>
Cc: Kai Svahn <kai.svahn@nokia.com>
Cc: Syed Khasim <x0khasim@ti.com>
Cc: linux-omap@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl4030-irq.c

index d05bc74daba32bcbbbfcdbf803b9f573cc0be329..ab417438d1faa4c8f3734ddad4b4c01a2dffa595 100644 (file)
@@ -561,7 +561,7 @@ static inline int sih_read_isr(const struct sih *sih)
        int status;
        union {
                u8 bytes[4];
-               u32 word;
+               __le32 word;
        } isr;
 
        /* FIXME need retry-on-error ... */