PNP: Hide pnp_bus_type from the non-PNP code
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Tue, 28 May 2024 10:25:03 +0000 (13:25 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 May 2024 19:53:51 +0000 (21:53 +0200)
commitedcde848c01eb071a91d479a6b3101d9cf48e905
tree9d1a5d4f902f4c2e4b79dd4c8c8e8a2676ac7528
parentc7a5096781732e0f9784551309484f3e103f6750
PNP: Hide pnp_bus_type from the non-PNP code

The pnp_bus_type is defined only when CONFIG_PNP=y, while being
not guarded by ifdeffery in the header. Moreover, it's not used
outside of the PNP code. Move it to the internal header to make
sure no-one will try to (ab)use it.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pnp/base.h
include/linux/pnp.h