Lines Matching defs:sdev
198 static int surface_hid_probe(struct ssam_device *sdev)
202 shid = devm_kzalloc(&sdev->dev, sizeof(*shid), GFP_KERNEL);
206 shid->dev = &sdev->dev;
207 shid->ctrl = sdev->ctrl;
208 shid->uid = sdev->uid;
212 shid->notif.event.reg = SSAM_EVENT_REGISTRY_REG(sdev->uid.target);
213 shid->notif.event.id.target_category = sdev->uid.category;
214 shid->notif.event.id.instance = sdev->uid.instance;
223 ssam_device_set_drvdata(sdev, shid);
227 static void surface_hid_remove(struct ssam_device *sdev)
229 surface_hid_device_destroy(ssam_device_get_drvdata(sdev));