96a9a3363de9add7436f8303598aa07ff0bd3de6
[openwrt/staging/lynxis.git] /
1 From 5fcfa846181de6676509696c4cd7b60a22e74077 Mon Sep 17 00:00:00 2001
2 From: Lee Jones <lee.jones@linaro.org>
3 Date: Mon, 2 Nov 2020 11:45:09 +0000
4 Subject: [PATCH] net: usb: r8152: Fix a couple of spelling errors in
5 fw_phy_nc's docs
6
7 commit 9f07814d01ad085b2d9f1d55b4ce532fb2c27110 upstream.
8
9 Fixes the following W=1 kernel build warning(s):
10
11 drivers/net/usb/r8152.c:992: warning: Function parameter or member 'mode_pre' not described in 'fw_phy_nc'
12 drivers/net/usb/r8152.c:992: warning: Function parameter or member 'mode_post' not described in 'fw_phy_nc'
13
14 Signed-off-by: Lee Jones <lee.jones@linaro.org>
15 Acked-by: Hayes Wang <hayeswang@realtek.com>
16 Link: https://lore.kernel.org/r/20201102114512.1062724-28-lee.jones@linaro.org
17 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
18 ---
19 drivers/net/usb/r8152.c | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22 --- a/drivers/net/usb/r8152.c
23 +++ b/drivers/net/usb/r8152.c
24 @@ -963,8 +963,8 @@ struct fw_phy_patch_key {
25 * @patch_en_addr: the register of enabling patch mode. Depends on chip.
26 * @patch_en_value: patch mode enabled mask. Depends on the firmware.
27 * @mode_reg: the regitster of switching the mode.
28 - * @mod_pre: the mode needing to be set before loading the firmware.
29 - * @mod_post: the mode to be set when finishing to load the firmware.
30 + * @mode_pre: the mode needing to be set before loading the firmware.
31 + * @mode_post: the mode to be set when finishing to load the firmware.
32 * @reserved: reserved space (unused)
33 * @bp_start: the start register of break points. Depends on chip.
34 * @bp_num: the break point number which needs to be set for this firmware.