]> www.infradead.org Git - users/jedix/linux-maple.git/commit
driver core: Split devres APIs to device/devres.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 12 Feb 2025 06:25:03 +0000 (11:55 +0530)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Feb 2025 10:08:51 +0000 (12:08 +0200)
commita21cad9312767d26b5257ce0662699bb202cdda1
treef826a8fb5c2d5e3ca3eab248a95571df5a95a37a
parent18311a766c587fc69b1806f1d5943305903b7e6e
driver core: Split devres APIs to device/devres.h

device.h is a huge header which is hard to follow and easy to miss
something. Improve that by splitting devres APIs to device/devres.h.

In particular this helps to speedup the build of the code that includes
device.h solely for a devres APIs.

While at it, cast the error pointers to __iomem using IOMEM_ERR_PTR()
and fix sparse warnings.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
include/linux/device.h
include/linux/device/devres.h [new file with mode: 0644]