We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c205edc commit 2a49b45Copy full SHA for 2a49b45
include/linux/pnp.h
@@ -469,6 +469,8 @@ int compare_pnp_id(struct pnp_id *pos, const char *id);
469
int pnp_register_driver(struct pnp_driver *drv);
470
void pnp_unregister_driver(struct pnp_driver *drv);
471
472
+#define dev_is_pnp(d) ((d)->bus == &pnp_bus_type)
473
+
474
#else
475
476
/* device management */
@@ -500,6 +502,8 @@ static inline int compare_pnp_id(struct pnp_id *pos, const char *id) { return -E
500
502
static inline int pnp_register_driver(struct pnp_driver *drv) { return -ENODEV; }
501
503
static inline void pnp_unregister_driver(struct pnp_driver *drv) { }
504
505
+#define dev_is_pnp(d) false
506
507
#endif /* CONFIG_PNP */
508
509
/**
0 commit comments