hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/mmc/host/vub300.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Remote VUB300 SDIO/SDmem Host Controller Driver
34 *
....@@ -6,10 +7,6 @@
67 * based on USB Skeleton driver - 2.2
78 *
89 * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com)
9
- *
10
- * This program is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public License as
12
- * published by the Free Software Foundation, version 2
1310 *
1411 * VUB300: is a USB 2.0 client device with a single SDIO/SDmem/MMC slot
1512 * Any SDIO/SDmem/MMC device plugged into the VUB300 will appear,
....@@ -98,7 +95,7 @@
9895 u8 port_number;
9996 u8 command_type;
10097 u8 command_index;
101
- u8 command_response[0];
98
+ u8 command_response[];
10299 } __packed;
103100
104101 struct sd_status_header {
....@@ -1366,7 +1363,7 @@
13661363 int retval;
13671364 for (n = 0; n < sdio_funcs; n++) {
13681365 struct sdio_func *sf = card->sdio_func[n];
1369
- l += snprintf(vub300->vub_name + l,
1366
+ l += scnprintf(vub300->vub_name + l,
13701367 sizeof(vub300->vub_name) - l, "_%04X%04X",
13711368 sf->vendor, sf->device);
13721369 }
....@@ -2073,18 +2070,11 @@
20732070 kref_put(&vub300->kref, vub300_delete);
20742071 }
20752072
2076
-static void vub300_init_card(struct mmc_host *mmc, struct mmc_card *card)
2077
-{ /* NOT irq */
2078
- struct vub300_mmc_host *vub300 = mmc_priv(mmc);
2079
- dev_info(&vub300->udev->dev, "NO host QUIRKS for this card\n");
2080
-}
2081
-
20822073 static const struct mmc_host_ops vub300_mmc_ops = {
20832074 .request = vub300_mmc_request,
20842075 .set_ios = vub300_mmc_set_ios,
20852076 .get_ro = vub300_mmc_get_ro,
20862077 .enable_sdio_irq = vub300_enable_sdio_irq,
2087
- .init_card = vub300_init_card,
20882078 };
20892079
20902080 static int vub300_probe(struct usb_interface *interface,