Lines Matching defs:dev
23 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \
26 struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); \
39 static int ucb1x00_assabet_add(struct ucb1x00_dev *dev)
41 device_create_file(&dev->ucb->dev, &dev_attr_vbatt);
42 device_create_file(&dev->ucb->dev, &dev_attr_vcharger);
43 device_create_file(&dev->ucb->dev, &dev_attr_batt_temp);
47 static void ucb1x00_assabet_remove(struct ucb1x00_dev *dev)
49 device_remove_file(&dev->ucb->dev, &dev_attr_batt_temp);
50 device_remove_file(&dev->ucb->dev, &dev_attr_vcharger);
51 device_remove_file(&dev->ucb->dev, &dev_attr_vbatt);