Linux: Add __read_sysfs_attr() helper function
authorHans de Goede <hdegoede@redhat.com>
Thu, 17 Feb 2011 11:45:10 +0000 (12:45 +0100)
committerPeter Stuge <peter@stuge.se>
Sun, 24 Jul 2011 21:34:58 +0000 (23:34 +0200)
commite05bbc59ca7b896e2b825bde59bf883ac8c09f5c
tree4d8d10b46bb372fa3603488e6b240a6c9c384b5e
parent20e26dda0f86dafa3436b152e090b5f3410c8ce4
Linux: Add __read_sysfs_attr() helper function

On Linux we often need to read (postive) integers from sysfs. This patch
adds a helper function for this. This is a preparation patch for adding
a libusb_get_device_speed() function to libusb.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/os/linux_usbfs.c