]> nv-tegra.nvidia Code Review - linux-4.9.git/commitdiff
usb: typec: include linux/device.h in ucsi.h
authorArnd Bergmann <arnd@arndb.de>
Fri, 30 Jun 2017 15:46:16 +0000 (17:46 +0200)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 23 Oct 2018 09:14:21 +0000 (02:14 -0700)
The new driver causes a build failure in some configurations:

In file included from /git/arm-soc/drivers/usb/typec/ucsi/trace.h:9:0,
                 from /git/arm-soc/drivers/usb/typec/ucsi/trace.c:2:
drivers/usb/typec/ucsi/ucsi.h:331:39: error: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]

This includes the required header file.

Fixes: c1b0bc2dabfa ("usb: typec: Add support for UCSI interface")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug 2284925

Change-Id: I0c3625c9021bfa9425691e47d9d8f788697d0a10
(cherry picked from commit 86be7f7b2d940ddc18143061e77989b017d93bf8)
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1928285
(cherry picked from commit 8a6fe2878be58c8c25300297bfe652b958b296e9)
Reviewed-on: https://git-master.nvidia.com/r/1928614
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/usb/typec/ucsi/ucsi.h

index 6b0d2f0918c6dd7fbf19207a47b2f6a43fcd9d57..8a88f45822e39eb1a8c1826c2c5129371d555aef 100644 (file)
@@ -3,6 +3,7 @@
 #define __DRIVER_USB_TYPEC_UCSI_H
 
 #include <linux/bitops.h>
+#include <linux/device.h>
 #include <linux/types.h>
 
 /* -------------------------------------------------------------------------- */