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: 13403549 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CCF27E743C8 for ; Thu, 28 Sep 2023 22:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XsiNJyY9QRiJv3C43hlWwKl2EI3gFgeYuM2WsFiJ1C8=; b=LLORuBP7KJ5WJH q+kzS0E/WlT8k8zazJVPckSZrnjtJJb/XrLU/uG67z65YHJ3EKGXmrsU2JjhIYjwYYjnyAgyiaVmv tmIkeWGrTPXRHQx1m+TxKgs5Oq6SSyA5VURcEet9CqLxmvzrb+V8EgeLLb9brfisrZcL5o2b+Tgc8 kldjRTqDoEQmg/x2jApcOGbmw/wocLiVvaheojNu7Oxhkv9l20LEOt2cdXBk6sBo/hSxRInOMoPGP R73YfHe8cOM4nH/4t1ga4ap8teGtObM8YS1ljoPM/BmsLizwgicEKr+Uj3XVcLlFev7JnGu6rnlVy 9b62Uep22gO17yyV38ug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlzFp-006l6U-2V; Thu, 28 Sep 2023 22:13:05 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlzFm-006l40-3A for linux-rockchip@lists.infradead.org; Thu, 28 Sep 2023 22:13:04 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-503056c8195so22090148e87.1 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=lists.infradead.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=TVeLQThNezHmcxj09sjFLsJkGmuByrAxGXXzrfPI4i2iFu+HlYXM+FQklrr8qKSgEG g4f9727inulZHWmQvzACr2puondhdPTeNgUX6C/GEbJMWsMb5FLtjDD/hy6iAn/A5J2p 3VoUunzUyX44UPMxt+LKjcNGEniMx70F0bz341ABgME8s7o0Bk9P5ZgOzXillsmSY2zO 0jnCHvx1ni6LaSmbe6lUmgsnKrE9fBs4BwbEIS/tQG0HmNV9NvXXpJsy7IwefB4XSwLZ ZU5AS2cvkMqmsyUZmWpokx1kcWeEM35s/k5RUvgPLbGGmi2h+gQv/VWb6ga+zrC/zQlZ c1zA== 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=FvIxU/szr3Bna8YpN0LEjPxy3oCMIAeEf/WdsAhJ3YkLVWqw7FDxBbHYvPRjP0fKAY mqlfijMMO1UvgglYj5Tb2ecnMpPlKon/bt0rQuTGLWIUw+2zLcKgJFicv1U49xzmy+yi XuIHkBrwygVZDPHwassdc8yFb4MTEn3nzWk8JTWB2LtvM8WmtXxOUDXNrWlItdgPehRr gmJ1Qn624Uc3NZI1A/Tm5MvagcU+fEcAfpRJcUGZaP28FiT0HVyHgp6yOQbbU0LupDSM bwboSG3a+3eJ9TUgD8+I8hi6mbZiQzYyNl2HG86s70ZQpzidN/gVBlblaZa2GG++0VJ9 Au8A== X-Gm-Message-State: AOJu0YwHF1OrpRAMPQWqM2fuXKmzjI9P5Vw//mSZhSbuqAGMVOu0lZam 5fOiw0tEiiQME8wsgdu8Qa7Y3A== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_151303_022774_671547AE X-CRM114-Status: GOOD ( 18.87 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.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: 13403552 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D290E743C8 for ; Thu, 28 Sep 2023 22:13:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OAJbtRV1WY9kfJy0F/FV9k8H3jYA8hyIjc8rM4CvueQ=; b=UcoAq8AqjDocP9 Y7WuDtc0dJGakmNH+kY0JS3ERsY19E1wU0baflbXN+Akkyyksx/AZq5vpnkVVMtUyjNpcGwpMS/49 Eru7tVEcRZgFARO2PVDfIPvTxQNRcY9wB1wxbd/+pRfOipOT0/z+Al+3c9hR3URs0MEDmSK+bda7A lE0U2czwtTFbunubeNhEGxyfUp8ecRxyw9Q3r5TRn51QtCyVdIhqarikM5UQJVu30KidYjnXlxFQg WN924YnuvoI6ZAdVwGppWRrjQskdBte5coqBg22EEp0VCnGczrB7TFLlshhLMiDeCzgJ8gT5f70BQ fC/J8Yi9pXL1IdlGzQKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlzFp-006l6D-1A; Thu, 28 Sep 2023 22:13:05 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlzFm-006l43-3A for linux-rockchip@lists.infradead.org; Thu, 28 Sep 2023 22:13:04 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-504a7f9204eso3243616e87.3 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=lists.infradead.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=ntQSfUwb+70xTMuDyGfu3sQ5jmiAEWBJrchpAk8qoEysy4eVoPN1OLNlPU2qsaAPRG V2cPwvMN5hteB5vLBZ7kUVHA0vMXWVV5Fj+YhzWR4b4lhHtUsBkZEz12cPBxIQi71t27 YezgzmDr0MOFPFthv8OjmcnwGTVB/1kyNsqWQLMN/68SGrX0wfNq/do8xpnU5mWRoAMW eLbT1701RuOuKouGjy69kEGGKUiGamgg55Gd/z+3H6f4dxrEas/Aaw+eeOv9GYHVzuQ0 W2D545meD4SDqiU2zhRmEZHkObna/A8JjzUQfFlqjpUFEGGt214W4GSCunc5QdDgArWC nPrw== 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=JNmUv2goX1nZ7uXGaHJWsxzLpQA6gOrvKI3vhYeFSw9NHJSg6DSgbWv+C65S6gPXbU QUujvDVXh+8h8wjee1lRTw8GWI4vY8fWnQXOSHNDJ4Ou/Nk4X8KsozmH2TvbdLT6MXFE Rpiw40urvEI8bQfuBsyH7xyEkUQWftkrQwJaniaqexqwtwn1l5LzFAJwbxP5nuOeh/r/ fJAvXTMBgop8Z8UaGxHG0sRfXKcBKE1utZqfSYslH1IFbHQ28IpCxJh3c10Q9OSzQhmN p0Ngt8llTfR1fzQNZRoPwKTMNn9XltBJdgSI6k8z7tDkB95Bt6JcteGzvbZEY5z17Bgg +HlA== X-Gm-Message-State: AOJu0YxGobtROv1E4mwc6xyrxQ3REiyvrREi1zgP3AJZy7jozpx12pCR aF4th8HeLUoCLtDcuBJShBVZtA== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_151303_020208_042917D8 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.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: 13403551 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0890CE743CC for ; Thu, 28 Sep 2023 22:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/i+avrFzHnUz50Df21ykEDYtlJ/mC0rn5T1U9vVhIhY=; b=qou9iqoNyjC6sH lwssXWOLu88eBJPvd2xmnyglzbu5HRo7qbjr6CpQaUAwF0OkjKGkQWm0NOZD1quRqCFVIFDnP9273 cx+6LNMicESlDzJ7+rHCoN54rjhpfNNtyF/Vh05X81oG7kmtsT6AqHturzbmmGNbbSeHLf80Nd2kj sVSokdzKHxMO6dlpMoOPKnTANXmeF12BvOmQbE1KfhcWEoLR3otbVMOQruLXDyjG0BrCPeScfxeY/ 5vmoNmWjcTEGqxhjzW6g1eDlEnI8CpqT5nCbkCTMO9PUhSaJbm+JYrVmTCSaZDiDoZblsjXlHV5HC mM/TEf8+RSueu7t7POYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlzFr-006l7H-0l; Thu, 28 Sep 2023 22:13:07 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlzFn-006l4J-34 for linux-rockchip@lists.infradead.org; Thu, 28 Sep 2023 22:13:05 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-50336768615so22627424e87.0 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=lists.infradead.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=HhKRZWf1/mcFxbDz7dDmjmk/OtEy9UqPuFPAmdiw8WFpGVe8rNRaq0LRUnf25zzPh3 QjHeVKeGPTGCqEGIPPnnSbCEQzgFENp26oBYjaebUDCsb70jnNRlOm442jGlVm1aejQj G0YLW1eK0itnkxzef6kLlNFX5kZwBWwT4lO8ThE32pBmBlf+rY71BC8lU0djpO999US/ B4QVqluni1LZs5MSrGhsbSppEBXi3Amy5mCVlBnLiY/gnD0UOyjnknKzzrPBerPYOL6l YPZDNAPsvRUIeobUG7kSzJKbfgaoWLd2PLkUsitJxN8nPV5SSY98yRx1KHXF9aO6qdnj b84g== 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=ob7H0dCCoMXOmkLaHStP0AUB5dvseJD5YNQugeKLmk3L9PlD49NCeSozYIT7dQ8yko xfQ87j5yoB68I6R3RwOtxeTg2yyfUodkyVS+ODWCTOgBBAufa/M+WVXa8wlBzmE0ai4d 4Sh5ZfEJFz8TjSw5/TaUGgMmwvjwIMhqyBhAW6NxfWCXysZTcrmY1OnPCKxbbh5o5X+N qHTgUyxg/3LxZUo+qIQjIlJ+3r5IRNap84cP0S6/yPD2IHE741uMdGWyHxWmhusHqrOa VxkN/Iz4Ojq13ConHuybjxbGrRJA/CLFSzop1OqIH2kAk6lZA/D04qoMqxsjxQiguVlC 3FuQ== X-Gm-Message-State: AOJu0YyWPFygAODBstUgQkKFxIH19g4w5KV0VY7EX6fJhn1S++PBRdb+ kxbVYGx0FNfoQ3qMcCTCfGa+dg== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_151303_986980_B850F72C X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.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: 13403548 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2430E743CA for ; Thu, 28 Sep 2023 22:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IFXV9Gz4aiaiCo/PqrSVJioXbKntyhYKEw8m01TBLec=; b=wITgPKaA78uJ0e HUpLw1YOc+w8VI0dA5Dj28fsIRuW1oBpCwhgIXtwa2ll8k4nwUSU40yJqm0CmiwoeD9ExzbCjTG+I iWo1Qe1YM5s/uxP7mHjm8udQhzAaUPF4wP80eYqzzd57UfdWmQuKqvDnv3sXBUoE9HRKXVqAN/CIS IflmfcoKrIFxo8HQIVUoGRqGOhsx8DkvvIoaKPXPd8ss3K45O1+kGuWloy+sUqxgX2SL4kEHLtbsU 09lJ0pxrU6MpSyOR59SCGEXShz0u9GYdX4Gp23osJXvrcndTsncvHmYGjcq8gWSUPQdO6CrY8HbF6 QddhARIRvPxJUPnlw1OA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlzFr-006l7V-1w; Thu, 28 Sep 2023 22:13:07 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlzFo-006l4S-0W for linux-rockchip@lists.infradead.org; Thu, 28 Sep 2023 22:13:05 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-503397ee920so21115072e87.1 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=lists.infradead.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=UAUNhijMTwbgBpSA8TkLn4K0jMn+9S4cF1kBeMqgmY08/RrelwuwhZUoP+ZCYFMic0 pJu90MddJ0kxyuL0GYJxuKY0vCgpLX3we6QMZnuN9+C1XlBSin6Qv4/w80NnE4+DN0w3 7/9z7rBFHM/J47m5UB0wnpXEFRKB7CUOL5dIZ3rTt9IluxvyZdkmiWU4cCfo9EDaGTpX H3aFOZcgn0yUZZuzHrLv430IHYE1DaoE8HrP2pTK49usd0URJTcWsJ/oMwbNESgEESmY x1j4SaSbwZVEbUuce7gM3IPGSmsDmzWRZKk0TtFeJGktHo3N8RYFnp0mhSZ7vOySpPpY 5Qtg== 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=TMeov1fwvE4zVaqVVZDPUX/dVmN+QdlydOjuC9tWQR7qau62cDl634bWk5BEBi6vym Y96A64SzqjFP2sfIGKWFsUzqlaLikaMK7sWifD6xWDAj5BHmncRsVCFz3RN8yCEJfJK4 ESF2p7B/5SffBmtvCPDmR+dY03wimS+SSb0MKhDLXMWq9XfunWluYXiCJhOlHiSKLiyW EEvsQCsq2M2FVqEjdn9/HfBUaKpBo2rteU2CG1I67f3OAjGUgEOPbJuHWW/QmX31HwVs OAvm0GIHv8nky0cwpIv34a93ua8FjJGhOqAtxS0Kr/ZNSQkNrcESUyziU7EocagNH7/E zGlQ== X-Gm-Message-State: AOJu0YzKiIpgk2Gd2aTx476iMDmirlHg6e7MOeuNDQglU57tk50osivr LusIkvRTrkjGmSiY6JXDzTzQow== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_151304_198307_6259A190 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.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