summaryrefslogtreecommitdiffstats
path: root/drivers/usb/typec
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-07-03 18:41:39 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-09 16:46:59 +0200
commit318ebed29718daa2ffbe7be52ad2279d01efdf08 (patch)
tree1bf07880dcb56128448c23bc1f25bc7c3bcc68fd /drivers/usb/typec
parent50c9bd05df6f53f255b1a303da06582009e6d0c5 (diff)
downloadlinux-stable-318ebed29718daa2ffbe7be52ad2279d01efdf08.tar.gz
linux-stable-318ebed29718daa2ffbe7be52ad2279d01efdf08.tar.bz2
linux-stable-318ebed29718daa2ffbe7be52ad2279d01efdf08.zip
usb: typec: altmodes: displayport: Supply missing displayport.h include file
If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes. Fixes the following W=1 kernel build warning(s): drivers/usb/typec/altmodes/displayport.c:511:5: warning: no previous prototype for ‘dp_altmode_probe’ [-Wmissing-prototypes] drivers/usb/typec/altmodes/displayport.c:551:6: warning: no previous prototype for ‘dp_altmode_remove’ [-Wmissing-prototypes] Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20200703174148.2749969-22-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec')
-rw-r--r--drivers/usb/typec/altmodes/displayport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec/altmodes/displayport.c
index d617663b981d..7b20073d7fc0 100644
--- a/drivers/usb/typec/altmodes/displayport.c
+++ b/drivers/usb/typec/altmodes/displayport.c
@@ -13,6 +13,7 @@
#include <linux/module.h>
#include <linux/usb/pd_vdo.h>
#include <linux/usb/typec_dp.h>
+#include "displayport.h"
#define DP_HEADER(_dp, cmd) (VDO((_dp)->alt->svid, 1, cmd) | \
VDO_OPOS(USB_TYPEC_DP_MODE))