summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormananth <mananth>2003-12-12 14:11:46 +0000
committermananth <mananth>2003-12-12 14:11:46 +0000
commit26a8563c088a648cdcc1e89c3ec83dd6e6b29bb0 (patch)
treefe64ccd5034656f90db6e719c0c996c25624f478
parent3be0e096d4cefe9c2ba941abea2530f9703f6a60 (diff)
downloadsysfsutils-26a8563c088a648cdcc1e89c3ec83dd6e6b29bb0.tar.gz
Changes to function prototype names that take path as argument
-rw-r--r--test/get_class_dev.c2
-rw-r--r--test/get_classdev_parent.c2
-rw-r--r--test/get_device.c2
-rw-r--r--test/get_driver.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/get_class_dev.c b/test/get_class_dev.c
index d42732d..81a0aeb 100644
--- a/test/get_class_dev.c
+++ b/test/get_class_dev.c
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
return 1;
}
- cdev = sysfs_open_class_device_by_name(argv[1], argv[2]);
+ cdev = sysfs_open_class_device(argv[1], argv[2]);
if (cdev == NULL) {
fprintf(stdout, "Device %s not found\n", argv[2]);
return 1;
diff --git a/test/get_classdev_parent.c b/test/get_classdev_parent.c
index f256aa6..b5d3949 100644
--- a/test/get_classdev_parent.c
+++ b/test/get_classdev_parent.c
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
struct sysfs_driver *driver = NULL;
/* FIXME: edit this path to any valid path on your system to test */
- cdev = sysfs_open_class_device("/sys/block/sda/sda1");
+ cdev = sysfs_open_class_device_path("/sys/block/sda/sda1");
if (cdev == NULL) {
fprintf(stdout, "Class device not found\n");
return 1;
diff --git a/test/get_device.c b/test/get_device.c
index a04f31e..6b5bd36 100644
--- a/test/get_device.c
+++ b/test/get_device.c
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
return 1;
}
- device = sysfs_open_device_by_id(argv[2], argv[1]);
+ device = sysfs_open_device(argv[2], argv[1]);
if (device == NULL) {
fprintf(stdout, "Device %s not found on bus %s\n",
argv[2], argv[1]);
diff --git a/test/get_driver.c b/test/get_driver.c
index 249faa9..db02be6 100644
--- a/test/get_driver.c
+++ b/test/get_driver.c
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
strcat(path, SYSFS_DRIVERS_NAME);
strcat(path, "/");
strcat(path, argv[1]);
- driver = sysfs_open_driver(path);
+ driver = sysfs_open_driver_path(path);
if (driver == NULL) {
fprintf(stdout, "Device %s not found\n", argv[1]);
free(bus);