mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev: introduce dev_site_configured macro
Introduce dev_site_configured macro,which can be used to find the availability of site configurations for the device during udev rule creation. Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
73c82441e7
commit
5637799c92
@@ -25,4 +25,7 @@
|
||||
#define NUM_USER_SITES (NUM_SITES - 1)
|
||||
#define SITE_FALLBACK NUM_USER_SITES
|
||||
|
||||
/* Helper to find the availability of site-configuration */
|
||||
#define dev_site_configured(dev, x) (dev->site_specific[(x)].exists && \
|
||||
!dev->site_specific[(x)].deconfigured)
|
||||
#endif /* SITE_H */
|
||||
|
||||
Reference in New Issue
Block a user