[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230911224500.16677-1-andriy.shevchenko@linux.intel.com>
Date: Tue, 12 Sep 2023 01:45:00 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
"Matthew Wilcox (Oracle)" <willy@...radead.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH v1 1/1] logic_pio: Use RESOURCE_SIZE_MAX definition
Use a predefined limit instead of hardcoding it.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
lib/logic_pio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/logic_pio.c b/lib/logic_pio.c
index 2ea564a40064..1cab23e4f856 100644
--- a/lib/logic_pio.c
+++ b/lib/logic_pio.c
@@ -175,7 +175,7 @@ resource_size_t logic_pio_to_hwaddr(unsigned long pio)
if (range)
return range->hw_start + pio - range->io_start;
- return (resource_size_t)~0;
+ return RESOURCE_SIZE_MAX;
}
/**
--
2.40.0.1.gaa8946217a0b
Powered by blists - more mailing lists