Lines Matching defs:dev
27 struct wm831x_pdata *pdata = dev_get_platdata(&i2c->dev);
33 if (i2c->dev.of_node) {
34 of_id = of_match_device(wm831x_of_match, &i2c->dev);
36 dev_err(&i2c->dev, "Failed to match device\n");
44 wm831x = devm_kzalloc(&i2c->dev, sizeof(struct wm831x), GFP_KERNEL);
49 wm831x->dev = &i2c->dev;
55 dev_err(wm831x->dev, "Failed to allocate register map: %d\n",
66 static int wm831x_i2c_suspend(struct device *dev)
68 struct wm831x *wm831x = dev_get_drvdata(dev);
73 static int wm831x_i2c_poweroff(struct device *dev)
75 struct wm831x *wm831x = dev_get_drvdata(dev);