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: 552630 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 B28DCC433F5 for ; Fri, 18 Mar 2022 09:27:57 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 13F9517EF; Fri, 18 Mar 2022 10:27:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 13F9517EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1647595675; bh=T4z41I87uBSo9ltyIZ0egwxkvn/iVqG79Oo4uvvncYk=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=T1qgHYhbenG7CFq6rsMeoOsHNIFWsZtizT/lIW/pf6Ez+TFlY/yF0c8qT9LYEy0p+ qyodVzrI1ravphJ9v0F9mxzXEowpxRkXXnqI3nWVSOHeyErccIljjgUBy3oHN4/QY2 5tua1Q76seP0tkNLJVM6oHNEdIlyZaIaFuWxRxxM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9B068F80125; Fri, 18 Mar 2022 10:27:04 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8CF76F80121; Fri, 18 Mar 2022 10:27:03 +0100 (CET) Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 125B7F80121 for ; Fri, 18 Mar 2022 10:26:54 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 125B7F80121 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="bAfgW10P" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1647595618; x=1679131618; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=T4z41I87uBSo9ltyIZ0egwxkvn/iVqG79Oo4uvvncYk=; b=bAfgW10PExFRL3OrRLhxbeNh9hPZc4oaSxa9QZELTl070mkK04bRBD95 MI3S3hSOlisCpENW4kLtFkikYpB3GKlXJUvCybMNBtD9rOjLZZOnQvw9L 9Gk2+SV9pyykkBPCXTGQwubu3Ajr53IZRIgcM5Tgs8OatMW0sDr0P1JrQ DzibvEaZeG2/r2FCC1QlNyxJ5tfPGps6rBN3idrL41MJESVSLoGj9WeTH S3Cd7z0Ymu+eAaOEnE6DgvBsZqSSibWY6sG1rWyLx/ikwtmunRIKbDC26 kWzaBlhIstbDSQf7dFBDaB5QWBCkjW6tBXwTibtIN4K1XLOGbmiJJL/nR Q==; 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: , , 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 Cc: Codrin Ciubotariu , broonie@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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;