Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149580
b: refs/heads/master
c: 7c31499
h: refs/heads/master
v: v3
  • Loading branch information
Liam Girdwood committed Jun 15, 2009
1 parent 7fe08f3 commit 29f4703
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 1d98cccf7f8b944ba4ea56d14bbb7c2eeee59bfe
refs/heads/master: 7c314991d7d7ad4edf96e8322bcb30e8452957b7
10 changes: 5 additions & 5 deletions trunk/drivers/regulator/userspace-consumer.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ struct userspace_consumer_data {
struct regulator_bulk_data *supplies;
};

static ssize_t show_name(struct device *dev,
static ssize_t reg_show_name(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct userspace_consumer_data *data = dev_get_drvdata(dev);

return sprintf(buf, "%s\n", data->name);
}

static ssize_t show_state(struct device *dev,
static ssize_t reg_show_state(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct userspace_consumer_data *data = dev_get_drvdata(dev);
Expand All @@ -51,7 +51,7 @@ static ssize_t show_state(struct device *dev,
return sprintf(buf, "disabled\n");
}

static ssize_t set_state(struct device *dev, struct device_attribute *attr,
static ssize_t reg_set_state(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{
struct userspace_consumer_data *data = dev_get_drvdata(dev);
Expand Down Expand Up @@ -90,8 +90,8 @@ static ssize_t set_state(struct device *dev, struct device_attribute *attr,
return count;
}

static DEVICE_ATTR(name, 0444, show_name, NULL);
static DEVICE_ATTR(state, 0644, show_state, set_state);
static DEVICE_ATTR(name, 0444, reg_show_name, NULL);
static DEVICE_ATTR(state, 0644, reg_show_state, reg_set_state);

static struct device_attribute *attributes[] = {
&dev_attr_name,
Expand Down

0 comments on commit 29f4703

Please sign in to comment.