Commit 242e85a7 authored by Minghao Chi's avatar Minghao Chi Committed by Hans de Goede
Browse files

platform/x86: asus-wmi: Use kobj_to_dev()

parent 0eb369bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2534,7 +2534,7 @@ static struct attribute *asus_fan_curve_attr[] = {
static umode_t asus_fan_curve_is_visible(struct kobject *kobj,
					 struct attribute *attr, int idx)
{
	struct device *dev = container_of(kobj, struct device, kobj);
	struct device *dev = kobj_to_dev(kobj);
	struct asus_wmi *asus = dev_get_drvdata(dev->parent);

	/*