Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3262841rwb; Mon, 15 Aug 2022 22:38:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR55PvCDhuJea2j1pu7PyJ3CKjlaGkNBRVNwt0RTDQRw1Av3BmGEUaXqBvH7cTD9wGAxscoF X-Received: by 2002:a17:907:a073:b0:730:a5a4:4b7d with SMTP id ia19-20020a170907a07300b00730a5a44b7dmr11876597ejc.533.1660628336048; Mon, 15 Aug 2022 22:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628336; cv=none; d=google.com; s=arc-20160816; b=wDqsnYWJyIamUsjHeHAVe9n5owhuu3hLQ4Dx+LlLEozPdbS6uixmaNuwsqDhhVMMbO E/M4eKeQKkCWkuUoX+wZA8fH+eW5S1LSEK+IoLoH46t2ck540aeL9/fjM+gfYQUlxb1R dHkUbk/1RRJ7r9pV/93cgC8sftMCH49xKR/Q8nfsPZWapMxRrrPxKtTqjX5yQdaekmUn 3smyefkc70rJXlK8pha/+s4tA1VrV4nHlVhDv1SbgomH5kw7U2b923MnlwbEnXcTeW6L qFpXAQaEOdH8SF9dMCKiXhr2qtS1boZF8P1qbX/QwY91IOLnBYERlrBsAf30Zl5yXred eamg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6lCLiP+0/rF5jIAh1ih493BHGZcar4TCchR91pobN8s=; b=XR1WniclCnlm5R67nHBTnkd39uIa31iNaA0ygDjg8HyXWn27GcLMJt4SVU7RJXPWn6 1YNaTX8iBFZuPpWgbYx3S1laCDxVpu+5KzMtDtBmEzwI/Ov/nHuJoUhfU5JneiSnzfIm DvxJrsO+3LRMzS41DprBhJbNmDRAGUafKJ278uS/WcgPpVi+1WsRAI48oGoTqGB2bvss i+lz0qBOFz5ruDDOzDnHWEpXpCuasviGp38InAnC4FXRGQgZexW4RDp6lCWJhaATcoHn sq4tK5DuRMcJm6L8qpAdc9eKcihB2icgLq1vtVME9PGKmXqt9qpmz48z8NNbSj7pEqI2 G94g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RN3dhG9e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ww13-20020a170907084d00b007317756bc04si11104352ejb.1006.2022.08.15.22.38.30; Mon, 15 Aug 2022 22:38:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RN3dhG9e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232748AbiHPEtb (ORCPT + 99 others); Tue, 16 Aug 2022 00:49:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232852AbiHPEqC (ORCPT ); Tue, 16 Aug 2022 00:46:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C02DC175458; Mon, 15 Aug 2022 13:43:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DB4E861234; Mon, 15 Aug 2022 20:43:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1ED8C433C1; Mon, 15 Aug 2022 20:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596227; bh=AyU24YVz++nhNR4ubWOG1XjYUMz+8Y1xf/PQPu5HIz0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RN3dhG9efRZ/VoubCDi6qnH8cwb5fVCGKYqrO0AgcvtR19AxehYoX3n/HoxVGRBfq rsl6xYJ8vi+wr0i/IdmGQ5LQuqS35sHmr896qBIe1TDULQEnJWOA/LZwuPZxo+xNuQ U5S/g823b133jdPqLjB6zbyuOcjavLkPIfJpdmnc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shengjiu Wang , Mark Brown , Sasha Levin Subject: [PATCH 5.19 0979/1157] ASoC: fsl-asoc-card: force cast the asrc_format type Date: Mon, 15 Aug 2022 20:05:35 +0200 Message-Id: <20220815180518.908629797@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shengjiu Wang [ Upstream commit 6c7b077dad62178c33f9a3ae17f90d6b0bf6e2e5 ] Fix sparse warning: sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: warning: incorrect type in argument 3 (different base types) sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: expected unsigned int [usertype] *out_value sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: got restricted snd_pcm_format_t * Fixes: 859e364302c5 ("ASoC: fsl-asoc-card: Support new property fsl, asrc-format") Signed-off-by: Shengjiu Wang Link: https://lore.kernel.org/r/1658399393-28777-4-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl-asoc-card.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index d9a0d4768c4d..c836848ef0a6 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -537,6 +537,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) struct device *codec_dev = NULL; const char *codec_dai_name; const char *codec_dev_name; + u32 asrc_fmt = 0; u32 width; int ret; @@ -829,8 +830,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) goto asrc_fail; } - ret = of_property_read_u32(asrc_np, "fsl,asrc-format", - &priv->asrc_format); + ret = of_property_read_u32(asrc_np, "fsl,asrc-format", &asrc_fmt); + priv->asrc_format = (__force snd_pcm_format_t)asrc_fmt; if (ret) { /* Fallback to old binding; translate to asrc_format */ ret = of_property_read_u32(asrc_np, "fsl,asrc-width", -- 2.35.1