struct device *dev = container_of(starget->dev.children.next, struct device, node); struct scsi_device *sdev = to_scsi_device(dev); spi_dv_device(sdev);
device_for_each_child(&starget->dev, NULL, child_iter);
store_spi_revalidate(struct class_device *cdev, const char *buf, size_t count){	struct scsi_target *starget = transport_class_to_starget(cdev);	/* FIXME: we're relying on an awful lot of device internals	 * here.  We really need a function to get the first available	 * child */	struct device *dev = container_of(starget->dev.children.next, struct device, node);	struct scsi_device *sdev = to_scsi_device(dev);	spi_dv_device(sdev);	return count;}