Skip to content

Commit

Permalink
Revert "drivers: usb: properly remove TypeC driver"
Browse files Browse the repository at this point in the history
* This will be replaced and guarded with a config, to allow N935F to work
  • Loading branch information
ananjaser1211 committed Jun 18, 2020
1 parent 1bc5cdc commit d19066c
Show file tree
Hide file tree
Showing 5 changed files with 1,383 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/usb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ source "drivers/usb/phy/Kconfig"

source "drivers/usb/gadget/Kconfig"

source "drivers/usb/typec/Kconfig"

config USB_LED_TRIG
bool "USB LED Triggers"
depends on LEDS_CLASS && USB_COMMON && LEDS_TRIGGERS
Expand Down
3 changes: 2 additions & 1 deletion drivers/usb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ obj-$(CONFIG_USB_COMMON) += common/

obj-$(CONFIG_USBIP_CORE) += usbip/

obj-$(CONFIG_TYPEC) += typec/
obj-$(CONFIG_USB_NOTIFY_LAYER) += notify/
obj-$(CONFIG_USB_TYPEC_MANAGER_NOTIFIER) += manager/

obj-$(CONFIG_TYPEC) += typec/
10 changes: 10 additions & 0 deletions drivers/usb/typec/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

menu "USB Power Delivery and Type-C drivers"

config TYPEC
tristate
default y
depends on ANDROID_MAJOR_VERSION != "n"
depends on ANDROID_MAJOR_VERSION != "o"

endmenu
1 change: 1 addition & 0 deletions drivers/usb/typec/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_TYPEC) += typec.o
Loading

0 comments on commit d19066c

Please sign in to comment.