usb: gadget: udc: udc-xilinx: Add identifier to read_fn function arg
authorPiyush Mehta <piyush.mehta@amd.com>
Wed, 7 Jun 2023 07:29:59 +0000 (12:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2023 09:55:26 +0000 (11:55 +0200)
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>
drivers/usb/gadget/udc/udc-xilinx.c

index d73111b5cd8433766e4677d5146f9419f34d0542..a4a7b90a97e70c0f199142d2647127240400a49c 100644 (file)
@@ -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);
 };