Lines Matching refs:dev

45 static int mcp4725_suspend(struct device *dev)  in mcp4725_suspend()  argument
48 to_i2c_client(dev))); in mcp4725_suspend()
64 static int mcp4725_resume(struct device *dev) in mcp4725_resume() argument
67 to_i2c_client(dev))); in mcp4725_resume()
86 static ssize_t mcp4725_store_eeprom(struct device *dev, in mcp4725_store_eeprom() argument
89 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in mcp4725_store_eeprom()
129 dev_err(&data->client->dev, in mcp4725_store_eeprom()
199 ret = mcp4725_suspend(&data->client->dev); in mcp4725_write_powerdown()
201 ret = mcp4725_resume(&data->client->dev); in mcp4725_write_powerdown()
373 static int mcp4725_probe_dt(struct device *dev, in mcp4725_probe_dt() argument
377 pdata->use_vref = device_property_read_bool(dev, "vref-supply"); in mcp4725_probe_dt()
379 device_property_read_bool(dev, "microchip,vref-buffered"); in mcp4725_probe_dt()
395 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*data)); in mcp4725_probe()
401 if (dev_fwnode(&client->dev)) in mcp4725_probe()
402 data->id = (uintptr_t)device_get_match_data(&client->dev); in mcp4725_probe()
405 pdata = dev_get_platdata(&client->dev); in mcp4725_probe()
408 err = mcp4725_probe_dt(&client->dev, &pdata_dt); in mcp4725_probe()
410 dev_err(&client->dev, in mcp4725_probe()
418 dev_err(&client->dev, in mcp4725_probe()
424 dev_err(&client->dev, in mcp4725_probe()
436 data->vdd_reg = devm_regulator_get(&client->dev, "vdd"); in mcp4725_probe()
445 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in mcp4725_probe()
466 dev_err(&client->dev, "failed to read DAC value"); in mcp4725_probe()
477 dev_info(&client->dev, in mcp4725_probe()