Lines Matching refs:dev
52 static ssize_t ads7828_in_show(struct device *dev, in ads7828_in_show() argument
56 struct ads7828_data *data = dev_get_drvdata(dev); in ads7828_in_show()
106 struct device *dev = &client->dev; in ads7828_probe() local
107 struct ads7828_platform_data *pdata = dev_get_platdata(dev); in ads7828_probe()
118 data = devm_kzalloc(dev, sizeof(struct ads7828_data), GFP_KERNEL); in ads7828_probe()
127 } else if (dev->of_node) { in ads7828_probe()
128 diff_input = of_property_read_bool(dev->of_node, in ads7828_probe()
130 reg = devm_regulator_get_optional(dev, "vref"); in ads7828_probe()
141 if (client->dev.of_node) in ads7828_probe()
142 chip = (uintptr_t)of_device_get_match_data(&client->dev); in ads7828_probe()
177 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ads7828_probe()