Lines Matching defs:wdev
29 static int gigabyte_wmi_perform_query(struct wmi_device *wdev,
38 acpi_status ret = wmidev_evaluate_method(wdev, 0x0, command, &in, out);
46 static int gigabyte_wmi_query_integer(struct wmi_device *wdev,
54 ret = gigabyte_wmi_perform_query(wdev, command, args, &result);
66 static int gigabyte_wmi_temperature(struct wmi_device *wdev, u8 sensor, long *res)
74 ret = gigabyte_wmi_query_integer(wdev, GIGABYTE_WMI_TEMPERATURE_QUERY, &args, &temp);
86 struct wmi_device *wdev = dev_get_drvdata(dev);
88 return gigabyte_wmi_temperature(wdev, channel, val);
118 static u8 gigabyte_wmi_detect_sensor_usability(struct wmi_device *wdev)
125 if (!gigabyte_wmi_temperature(wdev, i, &temp))
131 static int gigabyte_wmi_probe(struct wmi_device *wdev, const void *context)
135 usable_sensors_mask = gigabyte_wmi_detect_sensor_usability(wdev);
137 dev_info(&wdev->dev, "No temperature sensors usable");
141 hwmon_dev = devm_hwmon_device_register_with_info(&wdev->dev, "gigabyte_wmi", wdev,