Lines Matching defs:wdev
37 static int wmi_bmof_probe(struct wmi_device *wdev, const void *context)
42 priv = devm_kzalloc(&wdev->dev, sizeof(struct bmof_priv), GFP_KERNEL);
46 dev_set_drvdata(&wdev->dev, priv);
48 priv->bmofdata = wmidev_block_query(wdev, 0);
50 dev_err(&wdev->dev, "failed to read Binary MOF\n");
55 dev_err(&wdev->dev, "Binary MOF is not a buffer\n");
66 ret = device_create_bin_file(&wdev->dev, &priv->bmof_bin_attr);
77 static void wmi_bmof_remove(struct wmi_device *wdev)
79 struct bmof_priv *priv = dev_get_drvdata(&wdev->dev);
81 device_remove_bin_file(&wdev->dev, &priv->bmof_bin_attr);