Lines Matching refs:dev
55 static struct ltc4261_data *ltc4261_update_device(struct device *dev) in ltc4261_update_device() argument
57 struct ltc4261_data *data = dev_get_drvdata(dev); in ltc4261_update_device()
72 dev_dbg(dev, in ltc4261_update_device()
122 static ssize_t ltc4261_value_show(struct device *dev, in ltc4261_value_show() argument
126 struct ltc4261_data *data = ltc4261_update_device(dev); in ltc4261_value_show()
136 static ssize_t ltc4261_bool_show(struct device *dev, in ltc4261_bool_show() argument
140 struct ltc4261_data *data = ltc4261_update_device(dev); in ltc4261_bool_show()
196 struct device *dev = &client->dev; in ltc4261_probe() local
204 dev_err(dev, "Failed to read status register\n"); in ltc4261_probe()
208 data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); in ltc4261_probe()
218 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ltc4261_probe()