summaryrefslogtreecommitdiff
path: root/udev_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_db.c')
-rw-r--r--udev_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_db.c b/udev_db.c
index d958c6173b..5377a3b373 100644
--- a/udev_db.c
+++ b/udev_db.c
@@ -202,7 +202,7 @@ int udev_db_get_device(struct udevice *udev, const char *devpath)
return 0;
}
-int udev_db_search_name(char *devpath, size_t len, const char *name)
+int udev_db_search_name(const char *name, char *devpath, size_t len)
{
DIR *dir;
char path[PATH_SIZE];