Lines Matching defs:dev
23 struct wm831x_pdata *pdata = dev_get_platdata(&spi->dev);
30 if (spi->dev.of_node) {
31 of_id = of_match_device(wm831x_of_match, &spi->dev);
33 dev_err(&spi->dev, "Failed to match device\n");
41 wm831x = devm_kzalloc(&spi->dev, sizeof(struct wm831x), GFP_KERNEL);
48 wm831x->dev = &spi->dev;
54 dev_err(wm831x->dev, "Failed to allocate register map: %d\n",
65 static int wm831x_spi_suspend(struct device *dev)
67 struct wm831x *wm831x = dev_get_drvdata(dev);
72 static int wm831x_spi_poweroff(struct device *dev)
74 struct wm831x *wm831x = dev_get_drvdata(dev);