Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7181945ybi; Mon, 22 Jul 2019 08:27:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxer7hk8LXZjrU54fP5ifaw3PTeE7NB7bKYWgYFElXYb1Ulr+MNIb1gT/Xa3IgETrFq5oba X-Received: by 2002:a17:902:44a4:: with SMTP id l33mr75593496pld.174.1563809222839; Mon, 22 Jul 2019 08:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563809222; cv=none; d=google.com; s=arc-20160816; b=wj4aelC3zly5a1GEHgDxib7IEVh5ovD0vz8h654s8bDx4v3jYPvfE7j2XhQDQf6R2d FzITNIrQbmXJ16QnZPj1Z3WIE8GqcxEdTBXokRuNF9FM7T1BAOCosJhuza/gCjKqxRYU ypiRlkQR8eG66c9XeVJtRb90NM/hLO/oQcuhCT/Ae74rDKUCDAKZVW/lOFXBBX5OR9Nn XqHUmMc7RbXXkD8Vdhw0jrjeqMA2G4NicZDqrg+0wZcIlTL2dni/wfwP1KDYnnWxHMn0 Yf2Az1zFtyk6H43QSZgBAr8ZwYFasIWwILohYNLeUvE6mjE3I5/MKHVVJmrgv59wCuHw cMOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=ZCIlTgADNq9hLb3aLbqzku2IjkLw0pl/FAYJnv5lKfw=; b=IOcFiC3ReBsUHVZO6g1qc/0yEqqc3xIZEpCClfSclpv1X9E+TRqrf0LAl6lLqoVxis uqw5j0+dCnp1T94ulUmtLHgaiUjdQWYz6lClzVe83QD+afFVVzWhZ3/KZBA//TR6qv9r Ac/A0QJ817u5PxPENrpFZldCu8sB1p0LfT3KVC2KsXUrK6zFkBdYDftyU8tixoDdzOxp 8v1LZoB0L6vWmdkXd4BZgmkU7+ykemwO+DLqEWTLES4ECZHGizz7Qvf82Gx0tAljdpu4 l2xugyfUDwpCgtfeQzOSt0NqbHjVaskuTv20iF0XtnOMJ3j6jfUd43FiCN/npLueqBV9 NcZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Z0iwAG4c; 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 b15si8886083pgm.230.2019.07.22.08.26.43; Mon, 22 Jul 2019 08:27:02 -0700 (PDT) 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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Z0iwAG4c; 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 S1730298AbfGVMWY (ORCPT + 99 others); Mon, 22 Jul 2019 08:22:24 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:58614 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730247AbfGVMWT (ORCPT ); Mon, 22 Jul 2019 08:22:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=ZCIlTgADNq9hLb3aLbqzku2IjkLw0pl/FAYJnv5lKfw=; b=Z0iwAG4c1dP/ aYQLcs9zZ0XOvFTmBGkrlxyaqofQ1yZPmJfGUboYK9xx0WDB1T+xWOw2ujC3mptJSqASU6FkKhuTN xAP2CTCcVjuU44nZ3goHR0MNBpJ2fvqQ31zabWJlHauCGz/e15i2y5JJ4g0/Aie9pL5sTRx7rb0NX rQwg0=; Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hpXKa-0007fY-7s; Mon, 22 Jul 2019 12:22:16 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id A335E2740463; Mon, 22 Jul 2019 13:22:15 +0100 (BST) From: Mark Brown To: Axel Lin Cc: Heiko Stuebner , Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown Subject: Applied "regulator: rk808: Return REGULATOR_MODE_INVALID for invalid mode" to the regulator tree In-Reply-To: <20190711122138.5221-1-axel.lin@ingics.com> X-Patchwork-Hint: ignore Message-Id: <20190722122215.A335E2740463@ypsilon.sirena.org.uk> Date: Mon, 22 Jul 2019 13:22:15 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regulator: rk808: Return REGULATOR_MODE_INVALID for invalid mode has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4 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 d850c6f5fad60b6edec08300977303aae855ffff Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 11 Jul 2019 20:21:38 +0800 Subject: [PATCH] regulator: rk808: Return REGULATOR_MODE_INVALID for invalid mode -EINVAL is not a valid return value for .of_map_mode, return REGULATOR_MODE_INVALID instead. Signed-off-by: Axel Lin Link: https://lore.kernel.org/r/20190711122138.5221-1-axel.lin@ingics.com Signed-off-by: Mark Brown --- drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index e7af0c53d449..61bd5ef0806c 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -606,7 +606,7 @@ static unsigned int rk8xx_regulator_of_map_mode(unsigned int mode) case 2: return REGULATOR_MODE_NORMAL; default: - return -EINVAL; + return REGULATOR_MODE_INVALID; } } -- 2.20.1