usb: typec: fusb302: Move out of staging
authorGuenter Roeck <linux@roeck-us.net>
Tue, 12 Sep 2017 03:32:08 +0000 (20:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 08:58:31 +0000 (10:58 +0200)
The driver is in good enough shape to be moved out of staging.
Do it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/typec/Kconfig
drivers/staging/typec/Makefile
drivers/staging/typec/fusb302/TODO [deleted file]
drivers/usb/typec/Kconfig
drivers/usb/typec/Makefile
drivers/usb/typec/fusb302/Kconfig [moved from drivers/staging/typec/fusb302/Kconfig with 100% similarity]
drivers/usb/typec/fusb302/Makefile [moved from drivers/staging/typec/fusb302/Makefile with 100% similarity]
drivers/usb/typec/fusb302/fusb302.c [moved from drivers/staging/typec/fusb302/fusb302.c with 100% similarity]
drivers/usb/typec/fusb302/fusb302_reg.h [moved from drivers/staging/typec/fusb302/fusb302_reg.h with 100% similarity]

index 31fad23c2553a9e3ddc1e9d677b799900f0ff833..5359f556d2030cbc2359cee88aa66d4863a092db 100644 (file)
@@ -9,8 +9,6 @@ config TYPEC_TCPCI
        help
          Type-C Port Controller driver for TCPCI-compliant controller.
 
-source "drivers/staging/typec/fusb302/Kconfig"
-
 endif
 
 endmenu
index e1df3f0fde1022e179186afecb9e45b9341ad416..53d649abcb53281192fe1efa84bada8bf380bc87 100644 (file)
@@ -1,2 +1 @@
 obj-$(CONFIG_TYPEC_TCPCI)      += tcpci.o
-obj-y                          += fusb302/
diff --git a/drivers/staging/typec/fusb302/TODO b/drivers/staging/typec/fusb302/TODO
deleted file mode 100644 (file)
index 19b466e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-fusb302:
-- Find a better logging scheme, at least not having the same debugging/logging
-  code replicated here and in tcpm
-- Find a non-hacky way to coordinate between PM and I2C access
-- Documentation? The FUSB302 datasheet provides information on the chip to help
-  understand the code. But it may still be helpful to have a documentation.
-- We may want to replace the  "fcs,max-snk-microvolt", "fcs,max-snk-microamp",
-  "fcs,max-snk-microwatt" and "fcs,operating-snk-microwatt" device(tree)
-  properties with properties which are part of a generic type-c controller
-  devicetree binding.
index 88860586009119d7a9d8c9c15999ea30bbef3aa5..819c0ed2b200644ad20697f7108f77f07f00cb4f 100644 (file)
@@ -12,6 +12,12 @@ config TYPEC_TCPM
          The Type-C Port Controller Manager provides a USB PD and USB Type-C
          state machine for use with Type-C Port Controllers.
 
+if TYPEC_TCPM
+
+source "drivers/usb/typec/fusb302/Kconfig"
+
+endif
+
 config TYPEC_WCOVE
        tristate "Intel WhiskeyCove PMIC USB Type-C PHY driver"
        depends on ACPI
index eb883984724b6ea8d8e41b046b7d6d7a18429950..b77688ce1f160d5da150f93c0103771ae1d58177 100644 (file)
@@ -1,4 +1,5 @@
 obj-$(CONFIG_TYPEC)            += typec.o
 obj-$(CONFIG_TYPEC_TCPM)       += tcpm.o
+obj-y                          += fusb302/
 obj-$(CONFIG_TYPEC_WCOVE)      += typec_wcove.o
 obj-$(CONFIG_TYPEC_UCSI)       += ucsi/