Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77414
b: refs/heads/master
c: cd4c1eb
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jan 28, 2008
1 parent 1fcddd3 commit e6035b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 193c3cc12583344be01206078d9ad3fec5dbc397
refs/heads/master: cd4c1eb51064f24a8b0a53069c4d004deade65c7
14 changes: 7 additions & 7 deletions trunk/drivers/mfd/ucb1x00-assabet.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "ucb1x00.h"

#define UCB1X00_ATTR(name,input)\
static ssize_t name##_show(struct device *dev, struct device_attribute *attr,
static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \
char *buf) \
{ \
struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); \
Expand All @@ -38,17 +38,17 @@ UCB1X00_ATTR(batt_temp, UCB_ADC_INP_AD2);

static int ucb1x00_assabet_add(struct ucb1x00_dev *dev)
{
device_create_file(&dev->ucb->dev, &device_attr_vbatt);
device_create_file(&dev->ucb->dev, &device_attr_vcharger);
device_create_file(&dev->ucb->dev, &device_attr_batt_temp);
device_create_file(&dev->ucb->dev, &dev_attr_vbatt);
device_create_file(&dev->ucb->dev, &dev_attr_vcharger);
device_create_file(&dev->ucb->dev, &dev_attr_batt_temp);
return 0;
}

static void ucb1x00_assabet_remove(struct ucb1x00_dev *dev)
{
device_remove_file(&dev->ucb->cdev, &device_attr_batt_temp);
device_remove_file(&dev->ucb->cdev, &device_attr_vcharger);
device_remove_file(&dev->ucb->cdev, &device_attr_vbatt);
device_remove_file(&dev->ucb->dev, &dev_attr_batt_temp);
device_remove_file(&dev->ucb->dev, &dev_attr_vcharger);
device_remove_file(&dev->ucb->dev, &dev_attr_vbatt);
}

static struct ucb1x00_driver ucb1x00_assabet_driver = {
Expand Down

0 comments on commit e6035b8

Please sign in to comment.