diff options
author | Zou Wei <zou_wei@huawei.com> | 2020-10-30 12:28:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-06 13:49:36 +0300 |
commit | 9e39aef3a105d3c934d9348cc27f1ccfd9ebee01 (patch) | |
tree | e600c647c8e530c8aab53fb55f9a00323277e8e7 /drivers/usb/misc/brcmstb-usb-pinmap.c | |
parent | 217504a055325fe76ec1142aa15f14d3db77f94f (diff) | |
download | linux-9e39aef3a105d3c934d9348cc27f1ccfd9ebee01.tar.xz |
usb: misc: brcmstb-usb-pinmap: Make sync_all_pins static
Fix the following sparse warning:
drivers/usb/misc/brcmstb-usb-pinmap.c:219:6: warning: symbol 'sync_all_pins' was not declared. Should it be static?
The sync_all_pins has only call site within brcmstb-usb-pinmap.c
It should be static
Fixes: 517c4c44b323 ("usb: Add driver to allow any GPIO to be used for 7211 USB signals")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1604050097-91302-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/brcmstb-usb-pinmap.c')
-rw-r--r-- | drivers/usb/misc/brcmstb-usb-pinmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/brcmstb-usb-pinmap.c b/drivers/usb/misc/brcmstb-usb-pinmap.c index 2326e60545f7..b3cfe8666ea7 100644 --- a/drivers/usb/misc/brcmstb-usb-pinmap.c +++ b/drivers/usb/misc/brcmstb-usb-pinmap.c @@ -216,7 +216,7 @@ static int parse_pins(struct device *dev, struct device_node *dn, return 0; } -void sync_all_pins(struct brcmstb_usb_pinmap_data *pdata) +static void sync_all_pins(struct brcmstb_usb_pinmap_data *pdata) { struct out_pin *pout; struct in_pin *pin; |