Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3714127pxv; Mon, 26 Jul 2021 10:03:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx07M+lvXqPvAe0MBoCKGMTCtGk0usRFj4YCj6pQFigGdl/qZx+Na6B8Jc4+9uHwsI5U4Q+ X-Received: by 2002:a05:6000:232:: with SMTP id l18mr3163341wrz.24.1627319024907; Mon, 26 Jul 2021 10:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627319024; cv=none; d=google.com; s=arc-20160816; b=seP6vB3AdHmjPxOFYdY91o6cSwhXRN/+xn2bF1iEqUZoLETPg2bggh0s2KuJ30OGRP oz15qNFZDp6Hf/QklJTmJVP5DZ1PYgXIohMsWDvRJciXAZUEGUaAqlKTSU9u5ENQ/EgY 5+RIQyNLM8vQKwMIRFf58YleGd0NvDkORa8NSqSLi30KhN+PmAGL8oXREce8O/ARyqIp IFPOfpTLkKvVb6w3aLrt7quH5S1eRGHXM0xMZz8xBbKhvn2Y6yK6IzaU3MuDWxFExnWc wykgJ9FJy8D50898Lk4nSdQlcExbPZnCBvygy/Sj2sqlwmMMoT0Q7DdmlcZmKrQ89aPN k9wg== 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=sa0wAU9KLu91cy/ZgFu7r+bikgEixuZ+UoGgcAPGdI8=; b=F58LdU5KCq0qpybo9tE0aiTzr4O7lJts0ELnZjHgJ6opKfuZGgSeE6TR9RD1L6r5e/ AGvpaTOzYOmZJt373H2TbCbGy9yj8D62vWXdVXN02BiC4jsUUkjrL6JZ+/tvDu1suNuJ oOkEpvVPGe8s3REB7W+j+BWOLfN21Labo091C1du4iryPUUwHhoSP84H5v7SqEyCRzOm 2WCMKJE5Sd+HapwIcRQxbqdldhzB1jdhdGk3RqRsWYWhLmuVWmr8FNfDLVNWDTCVPjk6 C1WOawpSvAo199Y4lshSHYOXJ4mvgPOpQO1GOhkmJ2rsWEYhhYLm+s1QDMaFHCh2tiJP A81A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="a7M/M/XC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec7si454573ejb.375.2021.07.26.10.03.17; Mon, 26 Jul 2021 10:03:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="a7M/M/XC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234909AbhGZPhb (ORCPT + 99 others); Mon, 26 Jul 2021 11:37:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:35826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237193AbhGZPVe (ORCPT ); Mon, 26 Jul 2021 11:21:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B406D60FEE; Mon, 26 Jul 2021 16:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315323; bh=Go1iKbPM/vtqA/2HqRpjLUeZFIYJ3ls5OtMWS70sE7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a7M/M/XCJtFXQunUfF/idtpYqKM68ePbNEpMFuwcA+WME3nwqjScHDryLg7vf5CtS tADiRjCExUrDGkQhJfss119Fme63Xa7Vmu+prEoPHhCQjBiKNNDQH3EWIw+4a8hDQ2 WBCchSoVZXpHJh48x3yBtU19FxYBBIs4PTgNCW0M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Axel Lin , Mark Brown , Sasha Levin Subject: [PATCH 5.10 051/167] regulator: hi6421: Use correct variable type for regmap api val argument Date: Mon, 26 Jul 2021 17:38:04 +0200 Message-Id: <20210726153841.115444027@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153839.371771838@linuxfoundation.org> References: <20210726153839.371771838@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Axel Lin [ Upstream commit ae60e6a9d24e89a74e2512204ad04de94921bdd2 ] Use unsigned int instead of u32 for regmap_read/regmap_update_bits val argument. Signed-off-by: Axel Lin Link: https://lore.kernel.org/r/20210619124133.4096683-1-axel.lin@ingics.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/hi6421-regulator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c index dc631c1a46b4..bff8c515dcde 100644 --- a/drivers/regulator/hi6421-regulator.c +++ b/drivers/regulator/hi6421-regulator.c @@ -386,7 +386,7 @@ static int hi6421_regulator_enable(struct regulator_dev *rdev) static unsigned int hi6421_regulator_ldo_get_mode(struct regulator_dev *rdev) { struct hi6421_regulator_info *info = rdev_get_drvdata(rdev); - u32 reg_val; + unsigned int reg_val; regmap_read(rdev->regmap, rdev->desc->enable_reg, ®_val); if (reg_val & info->mode_mask) @@ -398,7 +398,7 @@ static unsigned int hi6421_regulator_ldo_get_mode(struct regulator_dev *rdev) static unsigned int hi6421_regulator_buck_get_mode(struct regulator_dev *rdev) { struct hi6421_regulator_info *info = rdev_get_drvdata(rdev); - u32 reg_val; + unsigned int reg_val; regmap_read(rdev->regmap, rdev->desc->enable_reg, ®_val); if (reg_val & info->mode_mask) @@ -411,7 +411,7 @@ static int hi6421_regulator_ldo_set_mode(struct regulator_dev *rdev, unsigned int mode) { struct hi6421_regulator_info *info = rdev_get_drvdata(rdev); - u32 new_mode; + unsigned int new_mode; switch (mode) { case REGULATOR_MODE_NORMAL: @@ -435,7 +435,7 @@ static int hi6421_regulator_buck_set_mode(struct regulator_dev *rdev, unsigned int mode) { struct hi6421_regulator_info *info = rdev_get_drvdata(rdev); - u32 new_mode; + unsigned int new_mode; switch (mode) { case REGULATOR_MODE_NORMAL: -- 2.30.2