From patchwork Fri Mar 18 09:26:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 12785066 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 867AFC433F5 for ; Fri, 18 Mar 2022 09:28:29 +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:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jRX3Zy6PXVFscGuvSjGn0SDrcGO76dEhI4v7JTHyWMw=; b=sJlxa8m+DW98j9 /hgaJbaHEvs7a6JKbtKQCMZPrUo7YwkmsSqy28U14BMrqC+OalVFG1E5oTEDTbmowYwe3Uttc/DkX ej8dFDxh94CHNa7kKhYJs1CVgy5z/3HkAIGCLXHXa1Tq01nJPKXAxP+gabGtdmJ2YfbjkeOK9fCMA u7uLuVTIWX6LY7DaToLXMcUMkUN4UYgGTxEj4/NCUjn+7tdGVFGWtlK8aYDQjiK09fb2PlRDdufBT Kogqjf89s+H21Lkkiwa/sdInqgeq9lqBnnSZI+crdKVBZuUfgca379i/K1/o7bPSPIjGEPT9iUlJh /NFEExLbyKZcE/lTTNDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nV8st-000xUp-EY; Fri, 18 Mar 2022 09:26:59 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nV8sp-000xTl-O3 for linux-arm-kernel@lists.infradead.org; Fri, 18 Mar 2022 09:26:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1647595615; x=1679131615; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=T4z41I87uBSo9ltyIZ0egwxkvn/iVqG79Oo4uvvncYk=; b=xPvUk9hqZJ1qz3+OcYMBmfXdf54Bj7li4jv+tmINnYgUbV0aw3Mn/usd NyZN56WYJ7v8zR03KjpSjv7n7wG8BrlM7w5nc4m9Rsomom2c/WWnxpSBL MBnImaFbJw2vCPEuOkkoDNh6kUQIVhul5tFqNmb1w8M+wSq8LfRR27JSB b4E7OmwEdSl4zMB7+eg7xBv/YUWB3Tzs/64T9xoJKLzuqXQMEa2mKCLF3 VjF94mdgDipajMywXENwVWUO+d0AeglGXlmA/k43gGzYhDF21OrRjayId t3xLskIUUq6YxjnvM/IF6XWGpjEULJ5An1oTgpQYFM0TaAY99YyjIE6IK A==; X-IronPort-AV: E=Sophos;i="5.90,191,1643698800"; d="scan'208";a="89376626" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Mar 2022 02:26:51 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 18 Mar 2022 02:26:50 -0700 Received: from rob-ult-m19940.amer.actel.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 18 Mar 2022 02:26:49 -0700 From: Codrin Ciubotariu To: , , CC: , Codrin Ciubotariu Subject: [PATCH] ASoC: atmel: mchp-pdmc: print the correct property name Date: Fri, 18 Mar 2022 11:26:09 +0200 Message-ID: <20220318092609.130901-1-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220318_022655_857021_BFB5AC21 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The correct property is 'microchip,mic-pos', not 'mchp,mic-pos', so replace all occurences of 'mchp,mic-pos' with 'microchip,mic-pos'. Fix a multi-line comment format while we are at it. Fixes: 50291652af52 ("ASoC: atmel: mchp-pdmc: add PDMC driver") Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-pdmc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sound/soc/atmel/mchp-pdmc.c b/sound/soc/atmel/mchp-pdmc.c index e0aec5fe8a26..1a7802fbf23c 100644 --- a/sound/soc/atmel/mchp-pdmc.c +++ b/sound/soc/atmel/mchp-pdmc.c @@ -879,13 +879,13 @@ static int mchp_pdmc_dt_init(struct mchp_pdmc *dd) dd->mic_no = of_property_count_u32_elems(np, "microchip,mic-pos"); if (dd->mic_no < 0) { - dev_err(dd->dev, "failed to get mchp,mic-pos: %d", + dev_err(dd->dev, "failed to get microchip,mic-pos: %d", dd->mic_no); return dd->mic_no; } if (!dd->mic_no || dd->mic_no % 2 || dd->mic_no / 2 > MCHP_PDMC_MAX_CHANNELS) { - dev_err(dd->dev, "invalid array length for mchp,mic-pos: %d", + dev_err(dd->dev, "invalid array length for microchip,mic-pos: %d", dd->mic_no); return -EINVAL; } @@ -894,9 +894,10 @@ static int mchp_pdmc_dt_init(struct mchp_pdmc *dd) dev_info(dd->dev, "%d PDM microphones declared\n", dd->mic_no); - /* by default, we consider the order of microphones in mchp,mic-pos to - * be the same with the channel mapping; 1st microphone channel 0, 2nd - * microphone channel 1, etc. + /* + * by default, we consider the order of microphones in + * microchip,mic-pos to be the same with the channel mapping; + * 1st microphone channel 0, 2nd microphone channel 1, etc. */ for (i = 0; i < dd->mic_no; i++) { int ds;