Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5644119img; Wed, 27 Mar 2019 12:19:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxHYHix+ooyAGD4mqj5hmT2BtDgjF4IZz3hv/nOPPI15MNKq967Po8s50hjXJC18HQaQwR X-Received: by 2002:a63:195e:: with SMTP id 30mr32763142pgz.312.1553714348419; Wed, 27 Mar 2019 12:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714348; cv=none; d=google.com; s=arc-20160816; b=yM9kUJ1qdxWZ7+RDOJaaNDTzt0rQrDegNI+fgFZkDhUZS5tpvV3mWTAYysegUzU58X Pn1Cppl/lhqfDubezHoJPOWaS2Zpzs8h+KxPe9jyPswXSN6Un92Ch08hIfjikuJN6IhM fKkgSoiZmayjcQsd9k/m7ErenRW9ZzpfH5lVS9pajC1QjK7nqStAFMKLJERNKeGXARy+ 6LAfpTA1A+nki+/ByQfTAh43m4tIal+kOTQr6yh+CxPHcecnpTfyf3CjDr5gLbG1o6aG l+PQ2vEauE/W7Vae4jJGaf3UO71AvYFjDoLb8eSELx28PZ8PRMhREd7dbboxt0AVIgXi ylbw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NjU6JS6H9E29la+FZraGDZpcvbOhPitALIl5sqmL8o0=; b=ySww7sa4mDHZHs4ORqzJTCnawoYnDOwxGN02ICQaKTWvtvRjzwqzEPTY6dK8BeUhXI D2sY6k5v1sdnIEZiZlta0prFRnWuRbKWE4mC7zKFgonHaHfL10nthkWmF7GGNE8mXovV 11s3P7lvsLtoeuF8Iq80TKZjD1A1pH7cCpLfSXv1K3LBWUbSBFduSwq/YAb30t4eniT2 dpQLxVHkjIgU0bDobtY7+bCvNsS/pmd6lIE55JObZT9tIKLir7OkSq0mcxw2XcWti1fX K5xsDEPmQ27Q75fkPbKyB2buNgVGeLIC0OI4vYgPgD0BAG3/8ogySTMGdRhS+ilxaYU1 fXMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qxDPH0bs; 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=pass (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 n15si5812794pgg.308.2019.03.27.12.18.53; Wed, 27 Mar 2019 12:19:08 -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=pass header.i=@kernel.org header.s=default header.b=qxDPH0bs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388440AbfC0SIy (ORCPT + 99 others); Wed, 27 Mar 2019 14:08:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:50624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387999AbfC0SIv (ORCPT ); Wed, 27 Mar 2019 14:08:51 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FDC62177E; Wed, 27 Mar 2019 18:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710131; bh=sHG9RJgV9laOErhdvwyunCcd9PEQTeWp9jbxFEPDUrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qxDPH0bswQYMsiMP7ryNN7ldBLXg6dDThKVzOTK4AhvEUD0qhb9nQTvzde/9IeSil ZH0Pvl85XaOCVJ5A0lNYTJI+8dw/3QaVQhWWNRiCRQkEP1jAL7Dbbapz3h6ug3h/K1 gEbD5/AeaxCIAY7rwckxSHqPBR7WlQmY/CRbWfd4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Axel Lin , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL 5.0 209/262] regulator: mcp16502: Include linux/gpio/consumer.h to fix build error Date: Wed, 27 Mar 2019 14:01:04 -0400 Message-Id: <20190327180158.10245-209-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Axel Lin [ Upstream commit f3c6a1a194317f3a31ee2b2067bb0a41de64bc8b ] Fix below build error: drivers/regulator/mcp16502.c: In function ‘mcp16502_gpio_set_mode’: drivers/regulator/mcp16502.c:135:3: error: implicit declaration of function ‘gpiod_set_value’; did you mean ‘gpio_set_value’? [-Werror=implicit-function-declaration] gpiod_set_value(mcp->lpm, 0); ^~~~~~~~~~~~~~~ gpio_set_value drivers/regulator/mcp16502.c: In function ‘mcp16502_probe’: drivers/regulator/mcp16502.c:486:13: error: implicit declaration of function ‘devm_gpiod_get’; did you mean ‘devm_gpio_free’? [-Werror=implicit-function-declaration] mcp->lpm = devm_gpiod_get(dev, "lpm", GPIOD_OUT_LOW); ^~~~~~~~~~~~~~ devm_gpio_free drivers/regulator/mcp16502.c:486:40: error: ‘GPIOD_OUT_LOW’ undeclared (first use in this function); did you mean ‘GPIOF_INIT_LOW’? mcp->lpm = devm_gpiod_get(dev, "lpm", GPIOD_OUT_LOW); ^~~~~~~~~~~~~ GPIOF_INIT_LOW Signed-off-by: Axel Lin Acked-by: Nicolas Ferre Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/mcp16502.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c index 3479ae009b0b..0fc4963bd5b0 100644 --- a/drivers/regulator/mcp16502.c +++ b/drivers/regulator/mcp16502.c @@ -17,6 +17,7 @@ #include #include #include +#include #define VDD_LOW_SEL 0x0D #define VDD_HIGH_SEL 0x3F -- 2.19.1