[PATCH v2 0/4] resource: Split and use DEFINE_RES*() macros

From: Andy Shevchenko
Date: Mon Mar 17 2025 - 14:14:33 EST


Mini-series to replaces open coded variants of DEFINE_RES*() macros.

Note, there are much more possibilities over the kernel and even in
the reources.c, however the latter contains not so trivial leftovers.
That's why the examples cover only straightforward conversions.

In v2:
- added examples of the conversion (Andrew)

Andy Shevchenko (4):
resource: Split DEFINE_RES_NAMED_DESC() out of DEFINE_RES_NAMED()
resource: Replace open coded variant of DEFINE_RES_NAMED_DESC()
resource: Replace open coded variants of DEFINE_RES_*_NAMED()
resource: Replace open coded variant of DEFINE_RES()

include/linux/ioport.h | 9 +++++++--
kernel/resource.c | 18 ++++--------------
2 files changed, 11 insertions(+), 16 deletions(-)

--
2.47.2