summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Davidson <md@google.com>2012-05-03 23:19:02 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-04 23:26:20 (GMT)
commit94758185689ee96694558d720d44e81b4e0abc3d (patch)
tree756925262fd350f548cfbdaaf3296c672bb7156d /include
parent4ae68e7345b0d5d49e1c2c7583d15a3c177f8a2f (diff)
downloadlinux-94758185689ee96694558d720d44e81b4e0abc3d.tar.xz
driver-core: fix DEVICE_INT_ATTR to use correct show/store functions
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 5ad17cc..3ab4d63 100644
--- 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);