projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ae68e7
)
driver-core: fix DEVICE_INT_ATTR to use correct show/store functions
author
Michael Davidson
<md@google.com>
Thu, 3 May 2012 23:19:02 +0000
(16:19 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 4 May 2012 23:26:20 +0000
(16:26 -0700)
DEVICE_INT_ATTR() should use device_show_int() and device_store_int()
not device_show_ulong() and device_store_ulong()
Signed-off-by: Michael Davidson <md@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/device.h
patch
|
blob
|
history
diff --git
a/include/linux/device.h
b/include/linux/device.h
index 5ad17cccdd715cbd95ea98f7b279f9fd3d106ec3..3ab4d63609b6573f5576947e4dd5c66630627860 100644
(file)
--- a/
include/linux/device.h
+++ b/
include/linux/device.h
@@
-502,7
+502,7
@@
ssize_t device_store_int(struct device *dev, struct device_attribute *attr,
{ __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
#define DEVICE_INT_ATTR(_name, _mode, _var) \
struct dev_ext_attribute dev_attr_##_name = \
- { __ATTR(_name, _mode, device_show_
ulong, device_store_ulong
), &(_var) }
+ { __ATTR(_name, _mode, device_show_
int, device_store_int
), &(_var) }
extern int device_create_file(struct device *device,
const struct device_attribute *entry);