]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
usb: dwc3: dwc3_get_extcon() can be static
authorkbuild test robot <fengguang.wu@intel.com>
Thu, 17 May 2018 16:06:41 +0000 (00:06 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:01:01 +0000 (10:01 +0300)
Fix sparse warning

Fixes: 5f0b74e54890 ("USB: dwc3: get extcon device by OF graph bindings")
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/drd.c

index 270682486f8217f8481b3f987d6e71c8b6693f10..218371f985ca8c0112a6abf70ead2835fbbea213 100644 (file)
@@ -440,7 +440,7 @@ static int dwc3_drd_notifier(struct notifier_block *nb,
        return NOTIFY_DONE;
 }
 
-struct extcon_dev *dwc3_get_extcon(struct dwc3 *dwc)
+static struct extcon_dev *dwc3_get_extcon(struct dwc3 *dwc)
 {
        struct device *dev = dwc->dev;
        struct device_node *np_phy, *np_conn;