resource: Introduce resource_intersection() for overlapping resources
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 3 Nov 2020 20:45:07 +0000 (22:45 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 17 Nov 2020 17:06:28 +0000 (18:06 +0100)
commitf65674df1b23cdcb6f656a14f659ffea83e7acaa
tree9770430d7c42d179b937b690dc96d8677bdcb2b4
parent5562f35d7feabfd68cd58a1ee28b451f90e82417
resource: Introduce resource_intersection() for overlapping resources

There will be at least one user that can utilize new helper.
Provide the helper for future user and for wider use.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/ioport.h