Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3948085rwb; Tue, 16 Aug 2022 11:27:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR5OQvbuR0LKP3RXjkO7AVcLvIdqdaqYqMQkq8YPCdACaRQOl2t/7Vn3aaCbNNViNAQi9VqC X-Received: by 2002:a05:6402:35d6:b0:43d:c3b0:1206 with SMTP id z22-20020a05640235d600b0043dc3b01206mr19965337edc.415.1660674430972; Tue, 16 Aug 2022 11:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660674430; cv=none; d=google.com; s=arc-20160816; b=Dubbw3OwzVXYMp9fcZiEc+Zu68nLkX4GDkcxxIgzAoAJM8fbvwVFnOlQixtTnCdd55 LasmxyLFubntR7fhLmOufujpzYvMnl8hxVUM4lk0Od60DVcr7vgyJ6+13CD+umk/K4ED O/qwQbrsHrjdNOWqcxNx0ZqYnM8yFIXd2LZ0vAu8ibPeSWEWJpzpsWz1NHT19OGdSX9t qNZRRpNGIpoYCbu1E+LcZVSOjsHkjNltXJQSsz+gmx2tADuSKwtzAGb60j035Gyq2hco kYBHvwPghjVOsJtRTQwadEAMh1it3t5/8TwYsOtzPjz55JnVbaq/mvUexdWDIjXRcfNk MuAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=Z8simdACjH813n5CRYNSPzLrNW9Ci4gIyc5c4PWSGtE=; b=E+G2kKyTQeZ/769KcnEE6Hzd6fwmln3wndb96jzzK0s1KwkSPQZkqsPQAm9N47zfHK VGyDNNgNqBuFTrPXhWJ668C74mygruoJsAvkXqT7UCE90GysFfsx0etaC7RVZP5J8ccV gmaeyVK/CZaDoBXzvW9NRmFZPrl3PLJWTShN7wGRngQQFIzh9+r9UmoGTTLNytaS8LSL oyZT3V627dkMRRtRTHmk/i7bC/ivOX1bApbIt5UDkutNZLX59Zp2Srzw9TYWILZKHs/v pPJEHrCy8kXZt3gsmkH7Q2taaPoCGEKDB95fiXg3nUnz5hZyXsgCv8Z6bYIjWV04zR9u s/BA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020a05640211ca00b0043de3215579si12770736edw.12.2022.08.16.11.26.45; Tue, 16 Aug 2022 11:27:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232978AbiHPRvj (ORCPT + 99 others); Tue, 16 Aug 2022 13:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231324AbiHPRvh (ORCPT ); Tue, 16 Aug 2022 13:51:37 -0400 Received: from bg5.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD9EA82754 for ; Tue, 16 Aug 2022 10:51:35 -0700 (PDT) X-QQ-mid: bizesmtp71t1660672277tnjh8cwu Received: from harry-jrlc.. ( [182.148.12.144]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 17 Aug 2022 01:51:07 +0800 (CST) X-QQ-SSF: 0100000000200060D000B00A0000020 X-QQ-FEAT: 6ArnuSDJ+imu+VjUQtt6P1w7IC8Ca6CyTAw+gGH+Fbqri0DwIvDJE92OK7rOz ++kG6TwdXmklaZn2d7esEEfsyzaBRtq0W7ot0ZlmrnENkoSrkssWs9wTBa58zktv5IZpwQ+ FLME7RCIkG0lneYnti7ZOtD7TXs/t5N1FiF87X60Q8HgWNpwK9fn0pi9u71nLgRtFAnWize OmrOCG53tZFdlQxNswc2C4oDMwvT6nSNjRVbr0OInY+OM1Mld7fwj1hH5aGwK5+i4eD96Ci HlK+GG0Vskr4MnxsUpf1hRv/yVAUJbBbIN4k2zkg3rnm+eh39eZIxY1eTOb5joMLRW4xnHm MuG1IZz9utxcLMKFh1UCClrC+VgogE/I8jal8tipIw0CpUGKSKnl8pZ8IhS4fxMvlpLlnQu X-QQ-GoodBg: 0 From: Xin Gao To: perex@perex.cz, tiwai@suse.com Cc: lgirdwood@gmail.com, broonie@kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] ASoC: Variable type completion Date: Wed, 17 Aug 2022 01:51:05 +0800 Message-Id: <20220816175105.8084-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, 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 'unsigned int' is better than 'unsigned'. Signed-off-by: Xin Gao --- sound/soc/soc-ac97.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/soc-ac97.c b/sound/soc/soc-ac97.c index 5f49e3dec3fc..32c5be61e2ec 100644 --- a/sound/soc/soc-ac97.c +++ b/sound/soc/soc-ac97.c @@ -57,7 +57,7 @@ static inline struct snd_soc_component *gpio_to_component(struct gpio_chip *chip return gpio_priv->component; } -static int snd_soc_ac97_gpio_request(struct gpio_chip *chip, unsigned offset) +static int snd_soc_ac97_gpio_request(struct gpio_chip *chip, unsigned int offset) { if (offset >= AC97_NUM_GPIOS) return -EINVAL; @@ -66,7 +66,7 @@ static int snd_soc_ac97_gpio_request(struct gpio_chip *chip, unsigned offset) } static int snd_soc_ac97_gpio_direction_in(struct gpio_chip *chip, - unsigned offset) + unsigned int offset) { struct snd_soc_component *component = gpio_to_component(chip); @@ -75,7 +75,7 @@ static int snd_soc_ac97_gpio_direction_in(struct gpio_chip *chip, 1 << offset, 1 << offset); } -static int snd_soc_ac97_gpio_get(struct gpio_chip *chip, unsigned offset) +static int snd_soc_ac97_gpio_get(struct gpio_chip *chip, unsigned int offset) { struct snd_soc_component *component = gpio_to_component(chip); int ret; @@ -88,7 +88,7 @@ static int snd_soc_ac97_gpio_get(struct gpio_chip *chip, unsigned offset) return !!(ret & (1 << offset)); } -static void snd_soc_ac97_gpio_set(struct gpio_chip *chip, unsigned offset, +static void snd_soc_ac97_gpio_set(struct gpio_chip *chip, unsigned int offset, int value) { struct snd_ac97_gpio_priv *gpio_priv = gpiochip_get_data(chip); -- 2.30.2