]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / glue: Split dev_is_platform() out of module for wide use
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 Aug 2018 13:45:41 +0000 (16:45 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 10 Sep 2018 10:48:50 +0000 (12:48 +0200)
commit5f6f172ecadd9753a8baeedeaa11b5c586cb0122
tree91a716f1483496b7577f1a562234b21d4ba8824c
parent98d8ef8d1216385375417e11a07c1df549521ab0
ACPI / glue: Split dev_is_platform() out of module for wide use

There would be useful to have in future the similar API in platform
core, as we have, for example, for PCI subsystem, to check if device
belongs to it.

Thus, split out conditional to a macro dev_is_platform() for wide use.

No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/glue.c
include/linux/platform_device.h