lkml.org 
[lkml]   [2023]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] bus: bt1-axi: Change from u32 to unsigned int for regmap_read() calls
Date
regmap_read() API signature expects the caller to send "unsigned int"
type to return back the read value.
Change the two calls to match the regmap_read() signature.

Signed-off-by: Yann Sionneau <yann@sionneau.net>
---
drivers/bus/bt1-axi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/bt1-axi.c b/drivers/bus/bt1-axi.c
index 4007e7322cf2..80a76f26b4c3 100644
--- a/drivers/bus/bt1-axi.c
+++ b/drivers/bus/bt1-axi.c
@@ -58,7 +58,7 @@ struct bt1_axi {
static irqreturn_t bt1_axi_isr(int irq, void *data)
{
struct bt1_axi *axi = data;
- u32 low = 0, high = 0;
+ unsigned int low = 0, high = 0;

regmap_read(axi->sys_regs, BT1_AXI_WERRL, &low);
regmap_read(axi->sys_regs, BT1_AXI_WERRH, &high);
base-commit: 2ccdd1b13c591d306f0401d98dedc4bdcd02b421
--
2.34.1

\
 
 \ /
  Last update: 2023-08-16 12:18    [W:0.016 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site