diff options
author | Piyush Mehta <piyush.mehta@amd.com> | 2023-06-07 12:59:59 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-13 11:55:26 +0200 |
commit | 152669f844d11513fc438bfee01d3f1bb2b2b565 (patch) | |
tree | 8cdfad1b9584ed2e5f104eacaef36b69dfa46293 /drivers/usb | |
parent | f817f271dad345833929a6180a3a637f9bcc1a76 (diff) | |
download | linux-152669f844d11513fc438bfee01d3f1bb2b2b565.tar.gz linux-152669f844d11513fc438bfee01d3f1bb2b2b565.tar.bz2 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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/udc/udc-xilinx.c | 2 |
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); }; |