Lines Matching refs:dev
114 static struct adm1029_data *adm1029_update_device(struct device *dev) in adm1029_update_device() argument
116 struct adm1029_data *data = dev_get_drvdata(dev); in adm1029_update_device()
127 dev_dbg(&client->dev, "Updating adm1029 data\n"); in adm1029_update_device()
159 temp_show(struct device *dev, struct device_attribute *devattr, char *buf) in temp_show() argument
162 struct adm1029_data *data = adm1029_update_device(dev); in temp_show()
168 fan_show(struct device *dev, struct device_attribute *devattr, char *buf) in fan_show() argument
171 struct adm1029_data *data = adm1029_update_device(dev); in fan_show()
186 fan_div_show(struct device *dev, struct device_attribute *devattr, char *buf) in fan_div_show() argument
189 struct adm1029_data *data = adm1029_update_device(dev); in fan_div_show()
196 static ssize_t fan_div_store(struct device *dev, in fan_div_store() argument
200 struct adm1029_data *data = dev_get_drvdata(dev); in fan_div_store()
228 dev_err(&client->dev, in fan_div_store()
349 dev_err(&client->dev, "Initialization failed!\n"); in adm1029_init_client()
357 struct device *dev = &client->dev; in adm1029_probe() local
361 data = devm_kzalloc(dev, sizeof(struct adm1029_data), GFP_KERNEL); in adm1029_probe()
375 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in adm1029_probe()