]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: intel_cht_int33fe: Split code to Micro-B and Type-C
authorYauhen Kharuzhy <jekhor@gmail.com>
Sat, 5 Oct 2019 20:42:55 +0000 (23:42 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 Oct 2019 07:55:10 +0000 (10:55 +0300)
commitd740795d9273dafb02ed809f3b68d62388bc08d9
treee6580c7b23bb6a26ab8a515df8f50ba61f70b330
parentc656829f073b244ae84f6c41a213ec619434f8fe
platform/x86: intel_cht_int33fe: Split code to Micro-B and Type-C

Existing intel_cht_int33fe ACPI pseudo-device driver assumes that
hardware has Type-C connector and register related devices described as
I2C connections in the _CRS resource.

There is at least one hardware (Lenovo Yoga Book YB1-91L/F) with Micro-B
USB connector exists. It has INT33FE device in the DSDT table but
there are only two I2C connection described: PMIC and BQ27452 battery
fuel gauge.

Splitting existing INT33FE driver allow to maintain code for USB Micro-B
(or AB) connector variant separately and make it simpler.

Split driver to intel_cht_int33fe_common.c and
intel_cht_int33fe_{microb,typec}.c. Compile all this sources to one .ko
module to make user experience easier.

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/intel_cht_int33fe_common.c [new file with mode: 0644]
drivers/platform/x86/intel_cht_int33fe_common.h [new file with mode: 0644]
drivers/platform/x86/intel_cht_int33fe_microb.c [new file with mode: 0644]
drivers/platform/x86/intel_cht_int33fe_typec.c [moved from drivers/platform/x86/intel_cht_int33fe.c with 82% similarity]