s390/cio: add test for ccwgroup device
Add a test to check if a given device is a ccwgroup device. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:

committed by
Martin Schwidefsky

parent
199652309a
commit
a166c368e7
@@ -73,4 +73,14 @@ extern void ccwgroup_remove_ccwdev(struct ccw_device *cdev);
|
||||
|
||||
#define to_ccwgroupdev(x) container_of((x), struct ccwgroup_device, dev)
|
||||
#define to_ccwgroupdrv(x) container_of((x), struct ccwgroup_driver, driver)
|
||||
|
||||
#if IS_ENABLED(CONFIG_CCWGROUP)
|
||||
bool dev_is_ccwgroup(struct device *dev);
|
||||
#else /* CONFIG_CCWGROUP */
|
||||
static inline bool dev_is_ccwgroup(struct device *dev)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* CONFIG_CCWGROUP */
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user