Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319237
b: refs/heads/master
c: baedee1
h: refs/heads/master
i:
  319235: f8c8598
v: v3
  • Loading branch information
Clemens Ladisch authored and Stefan Richter committed Jun 30, 2012
1 parent 24d6d9e commit f0e5ec5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 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: e18907cc8a3cd6e09510632b753b8b6fefa1752a
refs/heads/master: baedee177e6c553af455865718971d9a9c75e537
9 changes: 9 additions & 0 deletions trunk/drivers/firewire/core-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,14 @@ static ssize_t guid_show(struct device *dev,
return ret;
}

static ssize_t is_local_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct fw_device *device = fw_device(dev);

return sprintf(buf, "%u\n", device->is_local);
}

static int units_sprintf(char *buf, const u32 *directory)
{
struct fw_csr_iterator ci;
Expand Down Expand Up @@ -447,6 +455,7 @@ static ssize_t units_show(struct device *dev,
static struct device_attribute fw_device_attributes[] = {
__ATTR_RO(config_rom),
__ATTR_RO(guid),
__ATTR_RO(is_local),
__ATTR_RO(units),
__ATTR_NULL,
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/firewire.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ struct fw_card {
struct fw_attribute_group {
struct attribute_group *groups[2];
struct attribute_group group;
struct attribute *attrs[12];
struct attribute *attrs[13];
};

enum fw_device_state {
Expand Down

0 comments on commit f0e5ec5

Please sign in to comment.