Skip to content

Commit 9475818

Browse files
calcodiongregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4ae68e7 commit 9475818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ ssize_t device_store_int(struct device *dev, struct device_attribute *attr,
502502
{ __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
503503
#define DEVICE_INT_ATTR(_name, _mode, _var) \
504504
struct dev_ext_attribute dev_attr_##_name = \
505-
{ __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
505+
{ __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) }
506506

507507
extern int device_create_file(struct device *device,
508508
const struct device_attribute *entry);

0 commit comments

Comments
 (0)