Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3243656rdb; Wed, 13 Sep 2023 06:37:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsnBY4erQghUcxWQzkQs9BbZeIss+DpepiyH2t2G7JZSxDomDRX/GmuRroKGMTYPOysidJ X-Received: by 2002:a17:902:6b05:b0:1c3:8031:1dce with SMTP id o5-20020a1709026b0500b001c380311dcemr2453945plk.45.1694612247787; Wed, 13 Sep 2023 06:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694612247; cv=none; d=google.com; s=arc-20160816; b=PaJdOrSz3XSV0Ku5qsO7Zt4WqCNSas31rMgYtfiPAsEHRLTV5tv9sQ2yZ7d/YFhS9B 0fq7JKqJkd6ymmcGe7WW+cFN3HMngBn/xF5wgkpK2DX6Ehpd2PWoZ7RGHZ3SnLsSns1H gv05SFlKoklkDm5To7/BYmmeB8tCMFOcXe7xFOACP0Hv8uN5PajtUvGSATgRXtFwdWCY qOEUPk/bR2dr8fecanYIIPfYrvtbaFUfMD//lW5ZfK5DoxgaIgj7YjfEPelPjfFdSee1 Sxeja8hJ1eEZ6RRlOOpLgsbLD+AaCemkq+upyKbcj6iTR2/E3ER5EUJtYiQogouxFBb2 453g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=KZ3zQjFWjU6aUGv1M6ufEZQD2GEy4rVqeEvdZE7HUcU=; fh=/GpIJCuR/uQDrXvrV8XwC4cFS5IcP00S7YTQRA4ebHY=; b=kawsorih73U+GXhAA6Eo0YJk4eKu+Am41k+f8kV7w7Kfo+oOvLWR24epj1NBXcwRzt wWVcdDRqiFc3wrPZy7IaGpS9zE0Vicmhnhv72EDctQ/zb/XlsLx21N9mNVb5O830DumF LfLer3WBWV8B6p1chxfibAPGWMA+r9q8bGU6Td5ZG6gosvWgU4Tgjiz7EIKfIhkduE2q 4eI3OqqG2PQcgUiCdolBtcgqhtruCfZFAOtz03mKoQUqEB/6e1hnyhVj5vOkmmKEq+BJ bVrIJu/88CiPbDuIWopqovI0AO7dALBWtX+BiMTiBrJwlPDXBOg9jAXR2OaAwOrWXwx4 wkPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jq0kW61G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id q2-20020a170902a3c200b001bdf67d6a8fsi250333plb.40.2023.09.13.06.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 06:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jq0kW61G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id CA322814595E; Wed, 13 Sep 2023 00:03:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbjIMHDT (ORCPT + 99 others); Wed, 13 Sep 2023 03:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238362AbjIMHDS (ORCPT ); Wed, 13 Sep 2023 03:03:18 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 086F51738 for ; Wed, 13 Sep 2023 00:03:14 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9a9cd066db5so827180366b.0 for ; Wed, 13 Sep 2023 00:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694588592; x=1695193392; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KZ3zQjFWjU6aUGv1M6ufEZQD2GEy4rVqeEvdZE7HUcU=; b=jq0kW61GkgjrwMMrGaZpebWkJDASoHyDsSDQmYI1EDZueOPZIzRRHhU5dGS1laGoqJ sPqXtMGhxy1ZhqkyXVbpoCsFe69O5ryxI6TNJRL4LZ6VnrLTIzN2etslAin6Uu7t++Fx 6+xJw13xwCv5cZAIILyB03AtkaUbONyBeip5jcZLVy5jJlQsxDeocN32J8yDNm8YgQCy mykspDmxLwknDtnuuHGR6JiG/s3g2ArS/J7xEo18KDUFbnTJJZ+Foh5qtRmIlMIX2SuZ SxfPUkY5yBZ9iTLQalWaOg/Vbm5bF0+yLl5wNC6Ks3+Ld9Rw4XQPXjhyNIhjhJRY6VPC YYLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694588592; x=1695193392; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KZ3zQjFWjU6aUGv1M6ufEZQD2GEy4rVqeEvdZE7HUcU=; b=R01mb0X86tXaNyFzxfCgiT3Q81rnT9/7GmKZL3t7HYCe0otTWRcQEq3ttD/PDJGcgY 9YbCBhYrYsHp8VuHtlg53rHJJlbmjwsiKk/i5g2EBpJjb8rSMEotf7nBhuLiW0sT38+e uXXkdBrtjUVkYcCKERjUKtyDhTV4TvSuUFshfYm6uaJ5lyFfC99Jc4oBFQ0bw2HL53yc RWoLcA/U3i+0UbIP7J/fktvDpAwTZlb3Z06G+nd77jEOP6vX73s53LpiFSC/+nQIcHJ9 koi66xn69A2DOuLUU/73Fnhpzn1c7n56SCgx9k1dzpYIDfwqEQj+cmkifPDK5xbFyDN/ exEQ== X-Gm-Message-State: AOJu0YzgpAG5fJAti4uTbivYU56/gJ+nANrn6hzCZr5ESgCL3speTWS+ pKfwjFg0SscL0PMnEvuUaiplbw== X-Received: by 2002:a17:906:cc4d:b0:9a2:26e4:a5e8 with SMTP id mm13-20020a170906cc4d00b009a226e4a5e8mr1144760ejb.3.1694588592272; Wed, 13 Sep 2023 00:03:12 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id op5-20020a170906bce500b00992ea405a79sm7968662ejb.166.2023.09.13.00.03.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Sep 2023 00:03:11 -0700 (PDT) Message-ID: <3ee11823-a441-b646-bdd7-aedd3a3a55e5@linaro.org> Date: Wed, 13 Sep 2023 09:03:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH V2 4/5] ASoC: codecs: Change the aw88261 variable name and i2c driver name Content-Language: en-US To: wangweidong.a@awinic.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, perex@perex.cz, tiwai@suse.com, rf@opensource.cirrus.com, shumingf@realtek.com, ckeepax@opensource.cirrus.com, herve.codina@bootlin.com, 13916275206@139.com, ryans.lee@analog.com, linus.walleij@linaro.org, sebastian.reichel@collabora.com, fido_max@inbox.ru, povik+lin@cutebit.org, arnd@arndb.de, harshit.m.mogalapalli@oracle.com, liweilei@awinic.com, yijiangtao@awinic.com, colin.i.king@gmail.com, trix@redhat.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230912065852.347000-1-wangweidong.a@awinic.com> <20230912065852.347000-5-wangweidong.a@awinic.com> From: Krzysztof Kozlowski In-Reply-To: <20230912065852.347000-5-wangweidong.a@awinic.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 00:03:22 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email On 12/09/2023 08:58, wangweidong.a@awinic.com wrote: > From: Weidong Wang > > Change "sound-channel" to "awinic,audio-channel" > Change "aw88261_smartpa" to "aw88261" > - prof_name = aw88261_dev_get_prof_name(aw88261->aw_pa, count); > - if (!prof_name) { > + ret = aw88261_dev_get_prof_name(aw88261->aw_pa, count, &prof_name); > + if (ret) { > strscpy(uinfo->value.enumerated.name, "null", > strlen("null") + 1); > return 0; > @@ -1189,7 +1190,7 @@ static void aw88261_parse_channel_dt(struct aw88261 *aw88261) > u32 channel_value = AW88261_DEV_DEFAULT_CH; > u32 sync_enable = false; > > - of_property_read_u32(np, "sound-channel", &channel_value); > + of_property_read_u32(np, "awinic,audio-channel", &channel_value); > of_property_read_u32(np, "sync-flag", &sync_enable); What about this? Best regards, Krzysztof