summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormananth <mananth>2003-12-05 04:00:34 +0000
committermananth <mananth>2003-12-05 04:00:34 +0000
commit014f2918382deb049aae2b07b1828575a79a1956 (patch)
tree40cbebcb155dcc4e335f5448614c9990914f65e0
parenta290e9d7682ec53064009cd18e45a237069ed8c2 (diff)
downloadsysfsutils-014f2918382deb049aae2b07b1828575a79a1956.tar.gz
Remove unwanted "bsize" arg in sysfs_get_device_by_id()
-rw-r--r--docs/libsysfs.txt4
-rw-r--r--include/libsysfs.h2
-rw-r--r--lib/sysfs_device.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/docs/libsysfs.txt b/docs/libsysfs.txt
index bfbe491..b401a25 100644
--- a/docs/libsysfs.txt
+++ b/docs/libsysfs.txt
@@ -1188,15 +1188,13 @@ Description: Given the name of the bus on which to look for, this function
Arguments: const unsigned char *bus_id Device to look for
const unsigned char *bus Bus on which to search
- size_t bsize Size of "bus"
Returns: struct sysfs_device * with success
NULL with error. Errno will be set with error, returning
- EINVAL for invalid arguments
Prototype: struct sysfs_device *sysfs_open_device_by_id
- (const unsigned char *bus_id,
- const unsigned char *bus, size_t bsize)
+ (const unsigned char *bus_id, const unsigned char *bus)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
diff --git a/include/libsysfs.h b/include/libsysfs.h
index ba8eb32..1a12d65 100644
--- a/include/libsysfs.h
+++ b/include/libsysfs.h
@@ -198,7 +198,7 @@ extern struct sysfs_attribute *sysfs_get_device_attr
(struct sysfs_device *dev, const unsigned char *name);
extern struct dlist *sysfs_get_device_attributes(struct sysfs_device *device);
extern struct sysfs_device *sysfs_open_device_by_id
- (const unsigned char *bus_id, const unsigned char *bus, size_t bsize);
+ (const unsigned char *bus_id, const unsigned char *bus);
extern struct sysfs_attribute *sysfs_open_device_attr(const unsigned char *bus,
const unsigned char *bus_id, const unsigned char *attrib);
diff --git a/lib/sysfs_device.c b/lib/sysfs_device.c
index 38a4678..91ce150 100644
--- a/lib/sysfs_device.c
+++ b/lib/sysfs_device.c
@@ -461,7 +461,6 @@ static int get_device_absolute_path(const unsigned char *device,
* @bus_id: bus_id of the device to open - has to be the "bus_id" in
* /sys/bus/xxx/devices
* @bus: bus the device belongs to
- * @bsize: size of the bus buffer
* returns struct sysfs_device if found, NULL otherwise
* NOTE:
* 1. Use sysfs_close_device to close the device
@@ -469,7 +468,7 @@ static int get_device_absolute_path(const unsigned char *device,
* Use sysfs_find_device_bus to get the bus name
*/
struct sysfs_device *sysfs_open_device_by_id(const unsigned char *bus_id,
- const unsigned char *bus, size_t bsize)
+ const unsigned char *bus)
{
char sysfs_path[SYSFS_PATH_MAX];
struct sysfs_device *device = NULL;