summaryrefslogtreecommitdiffstats
path: root/commands/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/mount.c')
-rw-r--r--commands/mount.c28
1 files changed, 7 insertions, 21 deletions
diff --git a/commands/mount.c b/commands/mount.c
index f523f6b3b6..fddd770dc9 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -1,21 +1,7 @@
-/*
- * mount.c - mount devices
- *
- * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- */
+// SPDX-License-Identifier: GPL-2.0-only
+// SPDX-FileCopyrightText: © 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
+
+/* mount.c - mount devices */
#include <common.h>
#include <command.h>
@@ -27,7 +13,7 @@
static int do_mount(int argc, char *argv[])
{
int opt, verbose = 0;
- struct driver_d *drv;
+ struct driver *drv;
const char *type = NULL;
const char *mountpoint, *devstr;
const char *fsoptions = NULL;
@@ -50,7 +36,7 @@ static int do_mount(int argc, char *argv[])
}
if (argc == optind) {
- struct fs_device_d *fsdev;
+ struct fs_device *fsdev;
for_each_fs_device(fsdev) {
printf("%s on %s type %s\n",
@@ -62,7 +48,7 @@ static int do_mount(int argc, char *argv[])
if (verbose) {
printf("\nSupported filesystems:\n\n");
bus_for_each_driver(&fs_bus, drv) {
- struct fs_driver_d * fsdrv = drv_to_fs_driver(drv);
+ struct fs_driver * fsdrv = drv_to_fs_driver(drv);
printf("%s\n", fsdrv->drv.name);
}
}