/* ccw_device_get_path_mask() - get currently available paths @cdev: ccw device to be queried Returns: %0 if no subchannel for the device is available, else the mask of currently available paths for the ccw device's subchannel.  */
__u8 ccw_device_get_path_mask(struct ccw_device *cdev)
/* ccw_device_get_path_mask() - get currently available paths @cdev: ccw device to be queried Returns: %0 if no subchannel for the device is available, else the mask of currently available paths for the ccw device's subchannel.  */
__u8 ccw_device_get_path_mask(struct ccw_device *cdev)
{
	struct subchannel *sch;
	if (!cdev->dev.parent)
		return 0;
	sch = to_subchannel(cdev->dev.parent);
	return sch->lpm;
}