summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiyush Mehta <piyush.mehta@amd.com>2023-06-07 09:29:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-13 11:55:26 +0200
commit152669f844d11513fc438bfee01d3f1bb2b2b565 (patch)
tree8cdfad1b9584ed2e5f104eacaef36b69dfa46293
parentusb: usb251xb: Use of_property_read_u16() (diff)
downloadlinux-152669f844d11513fc438bfee01d3f1bb2b2b565.tar.xz
linux-152669f844d11513fc438bfee01d3f1bb2b2b565.zip
usb: gadget: udc: udc-xilinx: Add identifier to read_fn function arg
Add an identifier in the read_fn function declaration because based on commit ca0d8929e75a ("checkpatch: add warning for unnamed function definition arguments") it is the preferred coding style even C standard allows both formats. Signed-off-by: Piyush Mehta <piyush.mehta@amd.com> Message-ID: <20230607072959.2334046-1-piyush.mehta@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/gadget/udc/udc-xilinx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c
index d73111b5cd84..a4a7b90a97e7 100644
--- a/drivers/usb/gadget/udc/udc-xilinx.c
+++ b/drivers/usb/gadget/udc/udc-xilinx.c
@@ -192,7 +192,7 @@ struct xusb_udc {
bool dma_enabled;
struct clk *clk;
- unsigned int (*read_fn)(void __iomem *);
+ unsigned int (*read_fn)(void __iomem *reg);
void (*write_fn)(void __iomem *, u32, u32);
};