Re: [PATCH 2/2] USB: typec: qcom-pmic-typec: Drop redundant header includes
From: Heikki Krogerus
Date: Tue May 19 2026 - 10:07:29 EST
On Tue, May 19, 2026 at 12:00:16PM +0200, Krzysztof Kozlowski wrote:
> Unlike other units in this module, this one does not request interrupts
> or regulator supplies. It does not use OF graph, USB role switching or
> TypeC muxing APIs. Drop redundant header includes to speed up
> preprocessor.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Reviewed-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
> ---
> drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c b/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c
> index 3766790c1548..35320f89dad2 100644
> --- a/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c
> +++ b/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c
> @@ -4,19 +4,14 @@
> */
>
> #include <linux/err.h>
> -#include <linux/interrupt.h>
> #include <linux/kernel.h>
> #include <linux/mod_devicetable.h>
> #include <linux/module.h>
> #include <linux/of.h>
> -#include <linux/of_graph.h>
> #include <linux/platform_device.h>
> #include <linux/regmap.h>
> -#include <linux/regulator/consumer.h>
> #include <linux/slab.h>
> -#include <linux/usb/role.h>
> #include <linux/usb/tcpm.h>
> -#include <linux/usb/typec_mux.h>
>
> #include <drm/bridge/aux-bridge.h>
>
> --
> 2.51.0
--
heikki