Commit b0ebbaee authored by dongjian's avatar dongjian Committed by Greg Kroah-Hartman
Browse files

w1: Use kobj_to_dev()[RESEND]

parent 199c4d0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ static ssize_t w1_slave_read(struct file *filp, struct kobject *kobj,
			     struct bin_attribute *bin_attr, char *buf,
			     loff_t off, size_t count)
{
	struct device *dev = container_of(kobj, struct device, kobj);
	struct device *dev = kobj_to_dev(kobj);
	return w1_ds2780_io(dev, buf, off, count, 0);
}

+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static ssize_t w1_slave_read(struct file *filp, struct kobject *kobj,
			     struct bin_attribute *bin_attr, char *buf,
			     loff_t off, size_t count)
{
	struct device *dev = container_of(kobj, struct device, kobj);
	struct device *dev = kobj_to_dev(kobj);
	return w1_ds2781_io(dev, buf, off, count, 0);
}