resource: replace open coded resource_intersection()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 25 Sep 2024 15:43:34 +0000 (18:43 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Nov 2024 01:12:27 +0000 (17:12 -0800)
commit5c1edea773c98707fbb23d1df168bcff52f61e4b
tree3e541d9d6b396ff5cf8016f2683f9ab3be51f9ed
parent838010180241f5a9779a9ef9a621cdd2842f7354
resource: replace open coded resource_intersection()

Patch series "resource: A couple of cleanups".

A couple of ad-hoc cleanups since there was a recent development of
the code in question. No functional changes intended.

This patch (of 2):

__region_intersects() uses open coded resource_intersection().  Replace it
with existing API which also make more clear what we are checking.

Link: https://lkml.kernel.org/r/20240925154355.1170859-1-andriy.shevchenko@linux.intel.com
Link: https://lkml.kernel.org/r/20240925154355.1170859-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/resource.c