Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44344
b: refs/heads/master
c: 7b77d06
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Dec 10, 2006
1 parent 5b2ba57 commit 9bcea5a
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 438d6c2c015cf63bf7e9bdc2033d435433ac8455
refs/heads/master: 7b77d065d1e79a9c0b1b114d059b3bc3d8206c4d
11 changes: 4 additions & 7 deletions trunk/drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,11 @@ static ssize_t show_client_name(struct device *dev, struct device_attribute *att
}

/*
* We can't use the DEVICE_ATTR() macro here as we want the same filename for a
* different type of a device. So beware if the DEVICE_ATTR() macro ever
* changes, this definition will also have to change.
* We can't use the DEVICE_ATTR() macro here, as we used the same name for
* an i2c adapter attribute (above).
*/
static struct device_attribute dev_attr_client_name = {
.attr = {.name = "name", .mode = S_IRUGO, .owner = THIS_MODULE },
.show = &show_client_name,
};
static struct device_attribute dev_attr_client_name =
__ATTR(name, S_IRUGO, &show_client_name, NULL);


/* ---------------------------------------------------
Expand Down

0 comments on commit 9bcea5a

Please sign in to comment.