Skip to contentSkip to conversation

logic_pio: Use RESOURCE_SIZE_MAX definition

PATCH RESEND New Andy Shevchenko 1 participant 1 message Feb 3, 2024 Library code

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 logic_pio: Use RESOURCE_SIZE_MAX definition

Use a predefined limit instead of hardcoding it.

---
v1: resent with the main contributrs in the Cc list Initial contribution was here more than a few months ago:
https://lore.kernel.org/r/[email protected]
followed by [email protected]

 lib/logic_pio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/logic_pio.c +1 -1
index 2ea564a40064..1cab23e4f856 100644
@@ -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;
 }
 
 /**
Signature · 1 line
2.43.0.rc1.1.gbec44491f096