summaryrefslogtreecommitdiff
path: root/net/unix
diff options
context:
space:
mode:
authorOoi, Joyce <joyce.ooi@intel.com>2016-11-03 10:55:15 (GMT)
committerJiri Kosina <jkosina@suse.cz>2016-11-05 15:56:09 (GMT)
commit4c4480aad0d8eaf0d52b6f2c8c5dfbe0531cbbea (patch)
treebe053d09b5dfdbd35f1f000c8b045ea7987f3905 /net/unix
parent021afd55e2191248b471b29b9d0a96c267939a4d (diff)
downloadlinux-4c4480aad0d8eaf0d52b6f2c8c5dfbe0531cbbea.tar.xz
HID: sensor: fix attributes in HID sensor interface
User is unable to access to input-X-yyy and feature-X-yyy where X is a hex value and more than 9 (e.g. input-a-yyy, feature-b-yyy) in HID sensor custom sysfs interface. This is because when creating the attribute, the attribute index is written to using %x (hex). However, when reading and writing values into the attribute, the attribute index is scanned using %d (decimal). Hence, user is unable to access to attributes with index in hex values (e.g. 'a', 'b', 'c') but able to access to attributes with index in decimal values (e.g. 1, 2, 3,..). This fix will change input-%d-%x-%s and feature-%d-%x-%s to input-%x-%x-%s and feature-%x-%x-%s in show_values() and store_values() accordingly. Signed-off-by: Ooi, Joyce <joyce.ooi@intel.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions