From patchwork Mon Dec 16 17:46:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 181791 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4702315ile; Mon, 16 Dec 2019 10:49:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxOCpOjQYdgcICLwetci1PagAqptSxzKTntE7QW56n3o0ilaaEzZdjxN9QHW9zcwcEXD1xw X-Received: by 2002:a05:6830:1501:: with SMTP id k1mr34525434otp.209.1576522193670; Mon, 16 Dec 2019 10:49:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576522193; cv=none; d=google.com; s=arc-20160816; b=u6l+cGTcoLUzQPQII255MSDEEj5QhUX99RZ/xD7NZlsmW3ibuUk9CqesR7dhdXZXWZ nvZnHgDC0NREawW5IWm0s93AlI3kwbV3AqwWDj3phmxVwsHjUMMTZUxaFREf1PcNqWr0 zcXhkGVpdEyQKq+Kfycv30EIPEzu5SNag8dTHLnsNcsm6Stu+MuLhuU531iBImmmkT8N Az+EkQmQ47pK57eBXk+7O/R2NEpwO4cYvJoUsAxmcx730X6P70JA4SEtq+fgpBTkxyMM 1CmeYIw/pRV4KHpTLrjOvivkJtSP2RUAd/AWB5UXOXaVZSSADopnzNwCz0U8flyQmat1 zWaw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+mfnqcl/BRaMBJ31XvXXSyKaJBXC8gQsTqFrN+w4PEc=; b=O3QeueTSv3zYYOX8gEBWx7TsiP1nTiqLY925oHn2gzcx/EeM/iUqxacJYjaHfiWIbW DVH2sKGy3HsAdHBgTBSNJSRMVFmhj3FC5Lcw9KaMQb4cFIPu3LGNI5jyE7xDX/XFQ6Xq kDtkvz3VqIueghP8ASwOx1AIu75eOBLCH9PzK8fYSHtvMRtGwbHFX3AaWWGH/03FRoVd UEG0k+9pebVE4n3ZKlSt3hshGfOxtHYmoqL7h4AtpiTCRjMLipoaX6x6iD7JUWtHfmbU vY0br+evBWJM1btZy2RyOr+quD/32S6bCzGvX1l/zNafSgO932WmtDIr5iGrSNpFvT5q 6aTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e5DAQhB1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si11126559otj.148.2019.12.16.10.49.53; Mon, 16 Dec 2019 10:49:53 -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; dkim=pass header.i=@kernel.org header.s=default header.b=e5DAQhB1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727485AbfLPRw3 (ORCPT + 27 others); Mon, 16 Dec 2019 12:52:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:44216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726734AbfLPRw0 (ORCPT ); Mon, 16 Dec 2019 12:52:26 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 995362166E; Mon, 16 Dec 2019 17:52:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576518746; bh=cZRXYZr3dnqdd2ZANv1oCOypDbcNrsP6ksZp+LUmUVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e5DAQhB1lCE1PQSJBd2cVVWhjrYqF+PDTw0v5GCnxNfLfwvBRt6fZsrSQ03DQme/S 8cn1byg90qOcY1aLAhKXbF2g4yS3pYInIq5/gaHYmW3SPNS5Pxf/iK90LKzEqIDSwQ YAJUkr/vlwIf3sy1JHa+i3TnYmJCKjYkP1iPwke0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cheng-Yi Chiang , Mark Brown , Douglas Anderson , Sasha Levin Subject: [PATCH 4.14 048/267] regulator: Fix return value of _set_load() stub Date: Mon, 16 Dec 2019 18:46:14 +0100 Message-Id: <20191216174853.876135512@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191216174848.701533383@linuxfoundation.org> References: <20191216174848.701533383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark Brown [ Upstream commit f1abf67217de91f5cd3c757ae857632ca565099a ] The stub implementation of _set_load() returns a mode value which is within the bounds of valid return codes for success (the documentation just says that failures are negative error codes) but not sensible or what the actual implementation does. Fix it to just return 0. Reported-by: Cheng-Yi Chiang Signed-off-by: Mark Brown Reviewed-by: Douglas Anderson Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- include/linux/regulator/consumer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 25602afd48447..f3f76051e8b00 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -508,7 +508,7 @@ static inline int regulator_get_error_flags(struct regulator *regulator, static inline int regulator_set_load(struct regulator *regulator, int load_uA) { - return REGULATOR_MODE_NORMAL; + return 0; } static inline int regulator_allow_bypass(struct regulator *regulator,