projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b94d2
)
tpm/tpm-sysfs: active_show() can be static
author
Fengguang Wu
<fengguang.wu@intel.com>
Sat, 7 Dec 2013 15:10:26 +0000
(16:10 +0100)
committer
Peter Huewe
<peterhuewe@gmx.de>
Mon, 6 Jan 2014 13:37:25 +0000
(14:37 +0100)
so we make it static
CC: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
CC: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm-sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/char/tpm/tpm-sysfs.c
b/drivers/char/tpm/tpm-sysfs.c
index
c3503cb
..
01730a2
100644
(file)
--- a/
drivers/char/tpm/tpm-sysfs.c
+++ b/
drivers/char/tpm/tpm-sysfs.c
@@
-148,7
+148,7
@@
static ssize_t enabled_show(struct device *dev, struct device_attribute *attr,
}
static DEVICE_ATTR_RO(enabled);
-ssize_t active_show(struct device *dev, struct device_attribute *attr,
+s
tatic s
size_t active_show(struct device *dev, struct device_attribute *attr,
char *buf)
{
cap_t cap;