PNP: Add dev_is_pnp() macro
authorGuanbing Huang <albanhuang@tencent.com>
Tue, 16 Apr 2024 03:16:18 +0000 (11:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 11:14:30 +0000 (13:14 +0200)
commit2a49b45cd0e7e8c9a0cd5e2f3993b558469ed744
tree9301871040dfd34d75a82150a50f0f863beb9eb0
parentc205edcd86dac01c205e4eadf6d0d95965e7a566
PNP: Add dev_is_pnp() macro

Add dev_is_pnp() macro to determine whether the device is a PNP device.

Signed-off-by: Guanbing Huang <albanhuang@tencent.com>
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Bing Fan <tombinfan@tencent.com>
Tested-by: Linheng Du <dylanlhdu@tencent.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/4e68f5557ad53b671ca8103e572163eca52a8f29.1713234515.git.albanhuang@tencent.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/pnp.h