Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168287
b: refs/heads/master
c: 22aeceb
h: refs/heads/master
i:
  168285: be01065
  168283: 4596d8d
  168279: cc1aae6
  168271: 5d65cde
  168255: c7a8ffa
v: v3
  • Loading branch information
Darrick J. Wong authored and Len Brown committed Nov 5, 2009
1 parent 1bc1953 commit 1282c63
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 52a2b11cafb1b14bacfc65a20966da5ba3a863e1
refs/heads/master: 22aecebfd9498c4779e5c5bed1d2d054bd99f7a4
6 changes: 5 additions & 1 deletion trunk/drivers/acpi/power_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ static int set_acpi_trip(struct acpi_power_meter_resource *resource)
return -EINVAL;
}

return data;
/* _PTP returns 0 on success, nonzero otherwise */
if (data)
return -EINVAL;

return 0;
}

static ssize_t set_trip(struct device *dev, struct device_attribute *devattr,
Expand Down

0 comments on commit 1282c63

Please sign in to comment.