From patchwork Thu Sep 28 22:12:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 727877 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 534CFE743C8 for ; Thu, 28 Sep 2023 22:13:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231446AbjI1WND (ORCPT ); Thu, 28 Sep 2023 18:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231980AbjI1WNC (ORCPT ); Thu, 28 Sep 2023 18:13:02 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1531319D for ; Thu, 28 Sep 2023 15:13:00 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-5041d6d8b10so22069664e87.2 for ; Thu, 28 Sep 2023 15:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695939178; x=1696543978; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gEziQa3WMTxBubEiTduzNr8x972su8Z0Wh8gtotlZpA=; b=Jrsy9OPvOmcpaz6l7EykNeboJULka4nTfglc432rcjyB47/DngVva7/qdFN6tXLIHH uYxsVpMfyywGYtz35uGR+pVrTL6Mg77hi+F4QtyOv4L0jirY8fAPfk7uB+b3ZHeZLCcw gch//Rg8r+DwB43PiA+VNbcwwBKq1TS3KIpGkEFU4iBF3fo2A0OkcJjM62YUSEhaa0Wr cg87dd0kdT5XkKp4WJFg7T8kn99SbGFK9oUh3Ts61IyWfiGVqWCFHHJhC+8OvVch/IKM 1tg1GeNIp8Z0fVTCf9p/cPcD6YeGEmT+ghhNSqoZ6FwG5//blCgnpDAqYdu0MdmUQS3v RnpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695939178; x=1696543978; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gEziQa3WMTxBubEiTduzNr8x972su8Z0Wh8gtotlZpA=; b=iLwhQMzISwR3+bUBmi3laxThvH3mmAlSPPkYQ00i7xo7/rMcbI0LBSOT/qeYaeFRsx TroaRB+73vgTJ44yT/umr4DI3hXEoW4aBqDLNzzxk0x7Cu+u3+43UVgxVe/HZ31d95p+ 5WrJ0Ri4YsmS+pkCFnOo5tfOlnSzWgWMOD4bMmMdPfKN4QkKfkKbTFgL1ILYKTJQzvkz PoSpme7g2VC5CW/R/zX3R+s52lRAIXXruLZBXubzUNKHfZ60S7z1Qq0I2fF+CKEsciuk y9mcCOSBkSgetPKkvaiqHQxW8heWWVigZqovubMpkTRAQrncv655BAYfKHmU8/M9xNVE 5h4Q== X-Gm-Message-State: AOJu0Yz5bdv5Cs1dG30v5reOQ8KTQ9TY4ZMARa7R8hPXxdV3J7VO5TJg Lj2PlFWIHlDzhUGd3e3xMzX7yQ== X-Google-Smtp-Source: AGHT+IGzel1RkPZ4JzmTAzm8NUoePCdFt5ZlaT/NGsNucaV0V6gsJlM+udU+/kODIJyvFU9Ivj83aA== X-Received: by 2002:a05:6512:448:b0:4e0:a426:6ddc with SMTP id y8-20020a056512044800b004e0a4266ddcmr2091697lfk.0.1695939177623; Thu, 28 Sep 2023 15:12:57 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r27-20020ac25a5b000000b005030cef433esm3271964lfn.94.2023.09.28.15.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:12:56 -0700 (PDT) From: Linus Walleij Date: Fri, 29 Sep 2023 00:12:54 +0200 Subject: [PATCH v2 1/4] ASoC: rockchip: Convert RK3288 HDMI to GPIO descriptors MIME-Version: 1.0 Message-Id: <20230929-descriptors-asoc-rockchip-v2-1-2d2c0e043aab@linaro.org> References: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> In-Reply-To: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This converts the Rockchip RK3288 HDMI driver to use GPIO descriptors: - Look up the HP EN GPIO as an optional descriptor and handle it directly, the gpiod API is NULL-tolerant so no special guards are needed. - Let the Jack detection core obtain and handle the HP detection GPIO, just pass the right name and gpiod_dev and it will do the job. Make sure to check that the GPIO property is there first, so it becomes optional. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rk3288_hdmi_analog.c | 46 ++++++++++----------------------- 1 file changed, 14 insertions(+), 32 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c index 0c6bd9a019db..cdb5dfd0d1d4 100644 --- a/sound/soc/rockchip/rk3288_hdmi_analog.c +++ b/sound/soc/rockchip/rk3288_hdmi_analog.c @@ -12,8 +12,7 @@ #include #include #include -#include -#include +#include #include #include #include @@ -26,8 +25,7 @@ #define DRV_NAME "rk3288-snd-hdmi-analog" struct rk_drvdata { - int gpio_hp_en; - int gpio_hp_det; + struct gpio_desc *gpio_hp_en; }; static int rk_hp_power(struct snd_soc_dapm_widget *w, @@ -35,11 +33,8 @@ static int rk_hp_power(struct snd_soc_dapm_widget *w, { struct rk_drvdata *machine = snd_soc_card_get_drvdata(w->dapm->card); - if (!gpio_is_valid(machine->gpio_hp_en)) - return 0; - - gpio_set_value_cansleep(machine->gpio_hp_en, - SND_SOC_DAPM_EVENT_ON(event)); + gpiod_set_value_cansleep(machine->gpio_hp_en, + SND_SOC_DAPM_EVENT_ON(event)); return 0; } @@ -113,22 +108,23 @@ static int rk_hw_params(struct snd_pcm_substream *substream, } static struct snd_soc_jack_gpio rk_hp_jack_gpio = { - .name = "Headphone detection", + .name = "rockchip,hp-det", .report = SND_JACK_HEADPHONE, .debounce_time = 150 }; static int rk_init(struct snd_soc_pcm_runtime *runtime) { - struct rk_drvdata *machine = snd_soc_card_get_drvdata(runtime->card); + struct snd_soc_card *card = runtime->card; + struct device *dev = card->dev; - /* Enable Headset Jack detection */ - if (gpio_is_valid(machine->gpio_hp_det)) { + /* Enable optional Headset Jack detection */ + if (of_property_present(dev->of_node, "rockchip,hp-det-gpios")) { + rk_hp_jack_gpio.gpiod_dev = dev; snd_soc_card_jack_new_pins(runtime->card, "Headphone Jack", SND_JACK_HEADPHONE, &headphone_jack, headphone_jack_pins, ARRAY_SIZE(headphone_jack_pins)); - rk_hp_jack_gpio.gpio = machine->gpio_hp_det; snd_soc_jack_add_gpios(&headphone_jack, 1, &rk_hp_jack_gpio); } @@ -182,24 +178,10 @@ static int snd_rk_mc_probe(struct platform_device *pdev) card->dev = &pdev->dev; - machine->gpio_hp_det = of_get_named_gpio(np, - "rockchip,hp-det-gpios", 0); - if (!gpio_is_valid(machine->gpio_hp_det) && machine->gpio_hp_det != -ENODEV) - return machine->gpio_hp_det; - - machine->gpio_hp_en = of_get_named_gpio(np, - "rockchip,hp-en-gpios", 0); - if (!gpio_is_valid(machine->gpio_hp_en) && machine->gpio_hp_en != -ENODEV) - return machine->gpio_hp_en; - - if (gpio_is_valid(machine->gpio_hp_en)) { - ret = devm_gpio_request_one(&pdev->dev, machine->gpio_hp_en, - GPIOF_OUT_INIT_LOW, "hp_en"); - if (ret) { - dev_err(card->dev, "cannot get hp_en gpio\n"); - return ret; - } - } + machine->gpio_hp_en = devm_gpiod_get_optional(&pdev->dev, "rockchip,hp-en", GPIOD_OUT_LOW); + if (IS_ERR(machine->gpio_hp_en)) + return PTR_ERR(machine->gpio_hp_en); + gpiod_set_consumer_name(machine->gpio_hp_en, "hp_en"); ret = snd_soc_of_parse_card_name(card, "rockchip,model"); if (ret) { From patchwork Thu Sep 28 22:12:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 727428 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B5B7E743CA for ; Thu, 28 Sep 2023 22:13:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232052AbjI1WNC (ORCPT ); Thu, 28 Sep 2023 18:13:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231446AbjI1WNB (ORCPT ); Thu, 28 Sep 2023 18:13:01 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA9719E for ; Thu, 28 Sep 2023 15:13:00 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-50435ad51bbso19381722e87.2 for ; Thu, 28 Sep 2023 15:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695939178; x=1696543978; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dq20wAX7KyYyuxOCj/4NvQoVluqusmWSS2hLsMjGcCE=; b=z3mOPKber0l99I6ExoX9QhHj6wUFnmjRING6Ok7VWq2b2KYtWcGvZ2u5cuzx6jKKA4 XI5hB5pFDxxKa3hBMVJdNt6PHpDkc2fauDgem97k2p53Eo/jirWzz29ehw4EbXte3IAS NhtPueZU3MNfFYB6uOi/pLpa4Ev9/A+HknTsD53+7qtdohCUoy1t0ESrB+SnRDvtmzai IkA0HtR6w7Av7Gb21akFUtxX0r8ZGU0ffznwFr29uSs85tgAOPjTbWCmd8MpiTR9BNGU pAE42dKox1bWBUfxWGdJ34vGu/tVAuDHFo4ePhfY2tlV3b1yPf/N44xIvgc4ynJ0rnC3 4gJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695939178; x=1696543978; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dq20wAX7KyYyuxOCj/4NvQoVluqusmWSS2hLsMjGcCE=; b=AG4XJr8vwghUFjIoS8CSUW/5SqjQdUmS8JkMKGsYCd62OTvKOgk4ANl2duognNrn5x G+jo2mBYBN7WsvD/EOHA7eebojehwf1Bn9tJ3YjKKjsTXJvtSlWGiQ/VCuA9kOHSHgbM 3AbkaHFggH12OOqvlE51MrGdfZIViHsqlrBdVbILN4v/JWaf/o1HDm1vxIfHA0Np3+dP yRlnNNrLV/bPKB3hoLyKx8266ZFcaE83TjC1wvRcyIX11qcueJbTGzFA022YVTKnoT8j YzBXlzbCXn/5nooxzO5MPXXtnWGBzs0J5EuWN4bO7ffwmcJtCSgOctMbrY0eJq+7X8zF VhQw== X-Gm-Message-State: AOJu0YzwCBn025jKnBUIkoj/eyNUoVTxiPPeglNkqlfsUmKHBa/1rLeN OEBCjjnaCweLYHW9EmetmzQb3w== X-Google-Smtp-Source: AGHT+IH/mmM0nd0grFY56HkYk7pYC0txYkyCfW1BZfmsMKcj26i8WAbOvsdeSjB0ZgiMBG2REuwJsA== X-Received: by 2002:a05:6512:4011:b0:500:9d6c:913e with SMTP id br17-20020a056512401100b005009d6c913emr2625253lfb.52.1695939178506; Thu, 28 Sep 2023 15:12:58 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r27-20020ac25a5b000000b005030cef433esm3271964lfn.94.2023.09.28.15.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:12:58 -0700 (PDT) From: Linus Walleij Date: Fri, 29 Sep 2023 00:12:55 +0200 Subject: [PATCH v2 2/4] ASoC: rockchip: Drop includes from RK3399 MIME-Version: 1.0 Message-Id: <20230929-descriptors-asoc-rockchip-v2-2-2d2c0e043aab@linaro.org> References: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> In-Reply-To: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The RK3399 ASoC driver includes two legacy GPIO headers but doesn't use symbols from any of them. Delete the includes. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rk3399_gru_sound.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 0f704d22d21b..a178fcd94d88 100644 --- a/sound/soc/rockchip/rk3399_gru_sound.c +++ b/sound/soc/rockchip/rk3399_gru_sound.c @@ -8,8 +8,6 @@ #include #include #include -#include -#include #include #include #include From patchwork Thu Sep 28 22:12:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 727427 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0C0CE743C9 for ; Thu, 28 Sep 2023 22:13:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231980AbjI1WNE (ORCPT ); Thu, 28 Sep 2023 18:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231689AbjI1WNC (ORCPT ); Thu, 28 Sep 2023 18:13:02 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073C319F for ; Thu, 28 Sep 2023 15:13:01 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5046bf37daeso12232150e87.1 for ; Thu, 28 Sep 2023 15:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695939179; x=1696543979; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CY0vsjcVCBgE58w9UR6SBm++3xKyQBSwPNYicIzid6s=; b=SMXp1icOk8WxXF5jmPKLLWUVNIKk+KwUjCR3iKwxCompPgyHlz3goUP4P/M27iEVXh cI/G7tI1XhcTFp5wZGgYrWu8Ab2qnpSvQB7wYazOOhmQMEmf3JEBlu60c1HlthVfh81y 1eukuMYAN/bkoYhlXOwGrD/trVMMbjuU9p82JV3tCBljXJNbvt1xM05Gkq5lHybrUOjQ OBnihfRtrz0n3BAWpKsXjMzFbH1zMnRn9RU8K1/4xWj2T3Vt2n6HikkW7Ogb26sOFcfk 1oYpxg9JnJbEGFDaE1yijw5WEJD2AxMzfxQ5g3BthNzfC+1CMQkPSgYvOAMxk1N6ihi7 ZPTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695939179; x=1696543979; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CY0vsjcVCBgE58w9UR6SBm++3xKyQBSwPNYicIzid6s=; b=F/pAWlM6rJLAt5NqRyWBt2H85JdF+3MYU6o/x1MojZly2tjWNbuiJ6u2+nQ/RqiZmR 7F9fj8lg6/nycIandwKoatZq2ztYDQ9L9ebTrNfqOUhY60rzKF8pB3f5B4Uvm1WNEzlV 8UUnYbJ9N4sDKLf5zoPMsR1EEUC3aGJ5hRwWF94zdsk9PHE3A3YyhYATrbSxEJSRPHm2 BczjBY5IKnTVWnklc/Yu0GrBfQ0nf5Nq9MgfoBsHqxwtBvWiE6wmKw5KUmlXQZy92rUD ITqcrGXh51Em6abpH96XBOf5eH9uGFVPD5Yk0hZy/gDz5SeQDV3Rj243lYK4yTmr7F/G 83gw== X-Gm-Message-State: AOJu0YwH2M449eyEt5PF3ikFQs1ipCxtuP2MwtWVXPXFVA+DQBcag/3Y rWESwmFJJPJL9abobdpyquwoMg== X-Google-Smtp-Source: AGHT+IH+8EEAM93O9nlO+qtWwhEoVV89Rw7mcTI5Ss+i9HtYU7SmmUhL1U+18gaNy0wOYFIltW+FjA== X-Received: by 2002:a05:6512:2825:b0:503:257a:7f5d with SMTP id cf37-20020a056512282500b00503257a7f5dmr2553724lfb.31.1695939179359; Thu, 28 Sep 2023 15:12:59 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r27-20020ac25a5b000000b005030cef433esm3271964lfn.94.2023.09.28.15.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:12:58 -0700 (PDT) From: Linus Walleij Date: Fri, 29 Sep 2023 00:12:56 +0200 Subject: [PATCH v2 3/4] ASoC: rockchip: Drop includes from Rockchip MAX98090 MIME-Version: 1.0 Message-Id: <20230929-descriptors-asoc-rockchip-v2-3-2d2c0e043aab@linaro.org> References: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> In-Reply-To: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Rockchip MAX98090 ASoC driver includes two legacy GPIO headers but doesn't use symbols from any of them. Delete the includes. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rockchip_max98090.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/rockchip/rockchip_max98090.c b/sound/soc/rockchip/rockchip_max98090.c index 150ac524a590..8e48eb8aa7ad 100644 --- a/sound/soc/rockchip/rockchip_max98090.c +++ b/sound/soc/rockchip/rockchip_max98090.c @@ -9,8 +9,6 @@ #include #include #include -#include -#include #include #include #include From patchwork Thu Sep 28 22:12:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 727876 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78FC0E743CC for ; Thu, 28 Sep 2023 22:13:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232470AbjI1WNF (ORCPT ); Thu, 28 Sep 2023 18:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbjI1WND (ORCPT ); Thu, 28 Sep 2023 18:13:03 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3492199 for ; Thu, 28 Sep 2023 15:13:01 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50437c618b4so18978199e87.2 for ; Thu, 28 Sep 2023 15:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695939180; x=1696543980; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hm24NpX94JBemDRTScZMK9z0G78Go8UKUQZ7xueoWyk=; b=DoF7MKhTo9a4lu/kRakO8RejjTFwslKe/OgzDCXz8FF44V7GOu1zgfWI5Ghy4ioXKI HKK8ZMnz9VT+2V4XGS07w5CwQcm6tRE338cS+XDxQGlx+DBBNqkKpDPeE2OCwKjxx6UD NaLY3latSTAQ9i94v0k7XfmP4br7g9VkHReltUknaAUIL9YGYSUoYxw1HDPeLG5NleBd 4VfjhVOPSlCv7eaSWs27g7NRz1XcBmEjK6ic08VcbaPicuBwtlKGxOJLnUpgW1BU7ELj ctJRQQBxC/g3RyxTti/LGKef2riHfxtq6bfp20zMNTyS1sLtsPNILuRAKMf/0BRwRrtH QLog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695939180; x=1696543980; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hm24NpX94JBemDRTScZMK9z0G78Go8UKUQZ7xueoWyk=; b=cLLA+p0uuTlrh5k8tDnohlhImbL/XfkLZiNOWNFaVYfQArc85z6a1TRIF7JGa9Bxgd sK8EBQxul4j9xaKC/DLIqxQgYWrVL2sJ8z0vSIIuVCkVaWeqsO4jCnJedqgMZkYXCW4p 4XHqMzebfwIur02A42amGb7qOONAwsOVr2vJBQExIaZY2ERvV5CczA9jpPg6BkAU0TVL Hgg62LIDjsu5S1e4+Oyumfbjg1lScFiPVwpYueJPraWeXQKDqYLDog6FglPPtyPU7hVl CZE2Y/UOaYDQuOONc01fdvernUi4rEc6bxxH5d/BSxYe5KwTrDXqfqQ3VKDUnJx9LVX8 ub0w== X-Gm-Message-State: AOJu0YzUPil9itSbTSJ66P/UP6HjJZwQDfyMhTeY+MrnSmItfZtWfAv5 f4QEl5kc7xobUTiGaHtVehtnlDukoi6H2t8UJXs= X-Google-Smtp-Source: AGHT+IEcd7LSxKs1vQhEEohxk1j+l3rrDJD0tdrKzXWF996M/+vrMgyyTbA56OWL+2IlDzI4mvQOvA== X-Received: by 2002:a05:6512:3b23:b0:500:acf1:b42f with SMTP id f35-20020a0565123b2300b00500acf1b42fmr2510533lfv.53.1695939180185; Thu, 28 Sep 2023 15:13:00 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id r27-20020ac25a5b000000b005030cef433esm3271964lfn.94.2023.09.28.15.12.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:12:59 -0700 (PDT) From: Linus Walleij Date: Fri, 29 Sep 2023 00:12:57 +0200 Subject: [PATCH v2 4/4] ASoC: rockchip: Drop includes from Rockchip RT5645 MIME-Version: 1.0 Message-Id: <20230929-descriptors-asoc-rockchip-v2-4-2d2c0e043aab@linaro.org> References: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> In-Reply-To: <20230929-descriptors-asoc-rockchip-v2-0-2d2c0e043aab@linaro.org> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Linus Walleij X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Rockchip RT5645 ASoC driver includes two legacy GPIO headers but doesn't use symbols from any of them. Delete the includes. Signed-off-by: Linus Walleij --- sound/soc/rockchip/rockchip_rt5645.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/rockchip/rockchip_rt5645.c b/sound/soc/rockchip/rockchip_rt5645.c index ef9fdf0386cb..7d4d3a0ac5fd 100644 --- a/sound/soc/rockchip/rockchip_rt5645.c +++ b/sound/soc/rockchip/rockchip_rt5645.c @@ -8,8 +8,6 @@ #include #include #include -#include -#include #include #include #include