Skip to contentSkip to conversation

logic_pio: Use RESOURCE_SIZE_MAX definition

PATCH RESEND Superseded Andy Shevchenko 2 participants 6 messages Oct 16, 2023 – Feb 2, 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 Andrew in Cc list
Initial contribution was here more than a month ago:
https://lore.kernel.org/r/[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.40.0.1.gaa8946217a0b
#1 lore raw
Quoted 1 line · Andy Shevchenko

Use a predefined limit instead of hardcoding it.

Any comments on this?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 4 lines · Andy Shevchenko
Quoted 1 line · Andy Shevchenko

Use a predefined limit instead of hardcoding it.

Any comments on this?

It's month passed, can this be applied if no further comments?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw
Quoted 7 lines · Andy Shevchenko
Quoted 4 lines · Andy Shevchenko
Quoted 1 line · Andy Shevchenko

Use a predefined limit instead of hardcoding it.

Any comments on this?

It's month passed, can this be applied if no further comments?

Maybe you should cc someone who knows about and cares about the code instead of someone who did a driveby patch recently? get_maintainer.pl is not a replacement for using your brain.

#5 lore raw
Quoted 4 lines · Andy Shevchenko
Quoted 1 line · Andy Shevchenko

Use a predefined limit instead of hardcoding it.

Can we apply this one?

Why are you asking me? I don't even know what this driver is for.