Lines Matching defs:wdev
49 static int wmi_bmof_probe(struct wmi_device *wdev, const void *context)
54 priv = devm_kzalloc(&wdev->dev, sizeof(struct bmof_priv), GFP_KERNEL);
58 dev_set_drvdata(&wdev->dev, priv);
60 priv->bmofdata = wmidev_block_query(wdev, 0);
62 dev_err(&wdev->dev, "failed to read Binary MOF\n");
67 dev_err(&wdev->dev, "Binary MOF is not a buffer\n");
78 ret = sysfs_create_bin_file(&wdev->dev.kobj, &priv->bmof_bin_attr);
89 static int wmi_bmof_remove(struct wmi_device *wdev)
91 struct bmof_priv *priv = dev_get_drvdata(&wdev->dev);
93 sysfs_remove_bin_file(&wdev->dev.kobj, &priv->bmof_bin_attr);