Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1700523ybj; Wed, 6 May 2020 03:47:08 -0700 (PDT) X-Google-Smtp-Source: APiQypKiRU5VImPxLHtVGOqa5TdQ9g70KsMomhW7tE8AX2rae0jgnXyjJmDmXHot+hzgeSqwEeWX X-Received: by 2002:aa7:dac4:: with SMTP id x4mr6064491eds.127.1588762028277; Wed, 06 May 2020 03:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588762028; cv=none; d=google.com; s=arc-20160816; b=NfJSfrnxLms8Dwt2L0EVLlpoRBZ8jy3n9EL3gnEZomY2z5HOkqwpsqPH7YZfhW/AfO rMAcYD56bS3GOOCS5eawwKefCuRdqjhqeehhMNqj1MuPq37+T34zAAtodS/4j1rd2kNo d1UOZxIgJwRt36Tb4F4vfGHiX4IpgXy8EVY2X8m7KfVLbOPHYDGfpeCKZE75mCDCrsB1 bKpDzHSd8/+3Xun9mev2FmlG23NO8JVP9AZYJ1DT4cFi1g9lMNWrbGFZoSBCF2lo8F+r xaEeiIKwBNKWdnft3OmaR2q5AKpqmqAQbJSIOhSuCY8cvaRZ68LIBbKj6e1rhl53bKpI 7sNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/ibCenIXZSJONntttS7XuELaA6bk30NjJ5DvH9ILid8=; b=VGNfhMPGhat0pcR9Xia8WDGiberNZp1HmUFcIOszP2f8zRYXHinxLXCsu8QYpuHcvV wd09kXjtM1rPLDh+7hjkoPb2CYB/xmelZfqKWmvnf7KY8W3mvihiS6aoEyxIEuYTSdS/ v3PAVvzdZxCKewNnk2XAwIc3tkem7Uu13vDMTfrivEZoy0fprZfMBGO18Q70hdEO6z7L EeI1iP1CQbWNpbRE9S/zd/dyHmNL97Mw2USUeX1YaQbIa9Akvs1rJh2jdBBzXpRg1FDA AlpYMzkCyAwvINdwhJbYLkC7zZflB6tc0Gd+zfXQx88vYVVZYiOUvZU2LYo9fUT+jMjF 77kA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si876555ejb.281.2020.05.06.03.46.45; Wed, 06 May 2020 03:47:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727978AbgEFGSQ (ORCPT + 99 others); Wed, 6 May 2020 02:18:16 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:49550 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725873AbgEFGSQ (ORCPT ); Wed, 6 May 2020 02:18:16 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E3FB1F658CF4B138C800; Wed, 6 May 2020 14:18:12 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Wed, 6 May 2020 14:18:04 +0800 From: Jason Yan To: , , CC: Jason Yan Subject: [PATCH] regulator: db8500-prcmu: Use true,false for bool variable Date: Wed, 6 May 2020 14:17:26 +0800 Message-ID: <20200506061726.19289-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/regulator/db8500-prcmu.c:184:1-17: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/regulator/db8500-prcmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/db8500-prcmu.c b/drivers/regulator/db8500-prcmu.c index 88a2dcb9fe8a..0ce6ec4933af 100644 --- a/drivers/regulator/db8500-prcmu.c +++ b/drivers/regulator/db8500-prcmu.c @@ -181,7 +181,7 @@ static int db8500_regulator_switch_disable(struct regulator_dev *rdev) goto out; } - info->is_enabled = 0; + info->is_enabled = false; out: return ret; } -- 2.21.1