Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp718359ybl; Fri, 10 Jan 2020 05:40:25 -0800 (PST) X-Google-Smtp-Source: APXvYqyAG/hIZIPtCa9rT+JLvuqL5ZXRq12xy0bstIo450IqqmYWsdPHFeg6CFr/H9wXPQHNA4RI X-Received: by 2002:a05:6830:1651:: with SMTP id h17mr2456450otr.167.1578663625517; Fri, 10 Jan 2020 05:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578663625; cv=none; d=google.com; s=arc-20160816; b=AydWogSpY6KtWHNXOmpaNMEZb33/GQAWYc8MHul1GKqZD9gdP54Cdi2QV6xiH4PDqf fIaFEziXnmQ9Jved+Raoi3ANJfTR4shhQnEdPkgGR8n26CmD/KWAx2kSTITGIiYWcwuQ cdiR426hlwyJeCRBPixEOj+pJpNeYshWCyt2rICmIGUoyTwqEUfDB0v68+NTKQx1Bwmj SuWD33rYIMwDAhzKKr3ChU1HyWgFQ87w6qBB/8ohUX9n2fvWTmAc6Nb0r99Eon9x8dGZ dPfqkPlTMOeRcKMmTwzX+MrxA4MvKoxEw43RC3NlJtwgGHhYEcxlw0dWn5MnDInqT6y7 VKQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=w1TJfjf/QnvIBE1F53rnuZnTBYhg6jUkOQdbOpmEFFo=; b=kOyUcgO10f2TFNw16OkFkHBfz1vkxGPQv1+xVMfB+myze0mYgx5N8wqsV3c0KTHdrg MXMoXIu9gD5BRSgklcd+HIlzcgZUuEOsy/6Qzufvbo4EPk1uMfTv/ULDyIvR3xKeJPSp sfCfibXsrWHAl8bK5Djdkc7EI3eU22hvIXwewniBh416wYzsI0PFQAkYugBVzhYOeJQW Wad6rpz6AAgcXnLGB1JVdt5f3k1qdBriMXqFnkbY3Ia03/AYsJqTT3M/ke9FviMxu1D3 0DI1BLpZS7DfcKRihdH9hDjx1NWwTp9sEuln59K1CcCVaAUipZpXuxklcI6TDdJbkI5y tJdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si1319711otu.77.2020.01.10.05.40.14; Fri, 10 Jan 2020 05:40:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728052AbgAJNiP (ORCPT + 99 others); Fri, 10 Jan 2020 08:38:15 -0500 Received: from foss.arm.com ([217.140.110.172]:44574 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbgAJNiO (ORCPT ); Fri, 10 Jan 2020 08:38:14 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3D054DA7; Fri, 10 Jan 2020 05:38:14 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BBADB3F534; Fri, 10 Jan 2020 05:38:13 -0800 (PST) Date: Fri, 10 Jan 2020 13:38:12 +0000 From: Mark Brown To: Saravanan Sekar Cc: broonie@kernel.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, Mark Brown , sfr@canb.auug.org.au, sravanhome@gmail.com Subject: Applied "regulator: mpq7920: Fix Woverflow warning on conversion" to the regulator tree In-Reply-To: <20200110102220.7163-1-sravanhome@gmail.com> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regulator: mpq7920: Fix Woverflow warning on conversion has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.6 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 686f63616f4aede1356c1bc9fa4e9a92a123bcd6 Mon Sep 17 00:00:00 2001 From: Saravanan Sekar Date: Fri, 10 Jan 2020 11:22:20 +0100 Subject: [PATCH] regulator: mpq7920: Fix Woverflow warning on conversion Fix warning Woverflow on type conversion reported on x86. Fixes: 6501c1f54a17 (regulator: mpq7920: add mpq7920 regulator driver) Signed-off-by: Saravanan Sekar Link: https://lore.kernel.org/r/20200110102220.7163-1-sravanhome@gmail.com Signed-off-by: Mark Brown --- drivers/regulator/mpq7920.c | 2 +- drivers/regulator/mpq7920.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/mpq7920.c b/drivers/regulator/mpq7920.c index c603d60fb87b..ab1b847c57e5 100644 --- a/drivers/regulator/mpq7920.c +++ b/drivers/regulator/mpq7920.c @@ -221,7 +221,7 @@ static int mpq7920_parse_cb(struct device_node *np, if (of_property_read_bool(np, "mps,buck-ovp-disable")) { regmap_update_bits(config->regmap, MPQ7920_BUCK1_REG_B + (rdesc->id * 4), - BIT(6), ~BIT(6)); + MPQ7920_MASK_OVP, MPQ7920_OVP_DISABLE); } ret = of_property_read_u8(np, "mps,buck-phase-delay", &val); diff --git a/drivers/regulator/mpq7920.h b/drivers/regulator/mpq7920.h index 6a93bfbc750c..1498a1e3f4f5 100644 --- a/drivers/regulator/mpq7920.h +++ b/drivers/regulator/mpq7920.h @@ -55,6 +55,8 @@ #define MPQ7920_MASK_SWITCH_FREQ 0x30 #define MPQ7920_MASK_BUCK_PHASE_DEALY 0x30 #define MPQ7920_MASK_DVS_SLEWRATE 0xc0 +#define MPQ7920_MASK_OVP 0x40 +#define MPQ7920_OVP_DISABLE ~(0x40) #define MPQ7920_DISCHARGE_ON 0x1 #define MPQ7920_REGULATOR_EN_OFFSET 7 -- 2.20.1