Lines Matching refs:hw_dev
30 * @hw_dev: Hardware device.
40 * If @dev->hw_dev is NULL, it gets a reference to @hw_dev and sets
41 * @dev->hw_dev, otherwise, it does nothing. Calling it multiple times
46 * Returns 0 if @dev->hw_dev was NULL or the same as @hw_dev, otherwise
49 int comedi_set_hw_dev(struct comedi_device *dev, struct device *hw_dev)
51 if (hw_dev == dev->hw_dev)
53 if (dev->hw_dev)
55 dev->hw_dev = get_device(hw_dev);
62 put_device(dev->hw_dev);
63 dev->hw_dev = NULL;