From patchwork Fri Dec 22 21:13:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 122668 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2748185qgn; Fri, 22 Dec 2017 13:20:51 -0800 (PST) X-Google-Smtp-Source: ACJfBotzJlYJBD2wT04iYjIuLioiRNciMgethnLh7NYIOJu7eC8EXXHQgPXaaYCEEmBzv/k4R6zS X-Received: by 10.80.182.5 with SMTP id b5mr16629858ede.227.1513977650961; Fri, 22 Dec 2017 13:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513977650; cv=none; d=google.com; s=arc-20160816; b=HTGxhfbWjL56HpMLfxO1Un+/TcPxVPSWCo9lZS7STFFHHikGCVzviN6xnqWrVoKQXz 3FkzXX330Bf3/OvFf6DPy+cdcJHFWCRFVbCxQfMqeU6uOPPVX/zJL1iG/pfUAXEqdLIL ritFnDXfjZA9u5hGjGoKG/UJBnezvhtolZc+EhDC876czMnpn0njkrFBBuEuBIPk9zLh yWiLlsHZ4htuGocRKWQpHAGQJ4w1PAPEwlRjI1m19It7UK1LTne17XqPFzrR5r+eDMbA 2zY9bQzbjW/SYNJOmMu4+3PGkcyrSGbuRhUvZKmEyoercvGfwKpaMfvNY6Ol3b9Ui/DT W0bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:references :in-reply-to:message-id:date:to:from:arc-authentication-results; bh=GCBjRynyRBgY9Nbo3OzE2zG2Mo5g0oBpznR+qxdGv2o=; b=Rcmmmu56ICrV3XKM/G3wOURDpw4Zop9/XRzs4gN/ibf+NNDMcg8y+h02Di/WveA29A lhc7aXmwaf6ewXV5KM/zidAlkXT92vUEttV2OIgKQoHNFIkeoaC/XYM1oZRyJxJWoczQ 4ve2oe9Iu9yVhxTcq+4cvQO1HQakX8vVg74j9GWvjEALDWjExTlBgn/UGGsjgNTEvm9S ez0JYIOfKmhv/k+KaFwkL5P49Bwnw0XvxcZ1TVVtVur/pkmfmCOKDKLtkvzvrZO6y6Kv +hLQsoPlxl/LmenhbgRj7J8buopeLcSs5MjerpbKtv5R0rdmzFoK96eNnvL9WWPIb++k 5yEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g23si3942209edg.87.2017.12.22.13.20.50; Fri, 22 Dec 2017 13:20:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 72C0FC22213; Fri, 22 Dec 2017 21:17:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 769C6C2219F; Fri, 22 Dec 2017 21:14:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AD191C2222F; Fri, 22 Dec 2017 21:14:22 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 8853BC221BF for ; Fri, 22 Dec 2017 21:14:18 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id B26F32092B; Fri, 22 Dec 2017 22:14:17 +0100 (CET) Received: from localhost.localdomain (unknown [80.12.41.248]) by mail.free-electrons.com (Postfix) with ESMTPSA id 24874203A1; Fri, 22 Dec 2017 22:14:17 +0100 (CET) From: Quentin Schulz To: jagan@openedev.com, maxime.ripard@free-electrons.com, hdegoede@redhat.com, sjg@chromium.org, wd@denx.de, andre.przywara@arm.com, lukma@denx.de Date: Fri, 22 Dec 2017 22:13:43 +0100 Message-Id: <95fba4d3e5ae5238927339f494e8e615df74c4ea.1513975247.git-series.quentin.schulz@free-electrons.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: In-Reply-To: References: Cc: thomas.petazzoni@free-electrons.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH 09/11] env: make env_locations a global variable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Make env_locations a global variable so that it can be used in env drivers. Signed-off-by: Quentin Schulz --- env/env.c | 2 +- include/environment.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/env/env.c b/env/env.c index 2565e7a..ccddc2a 100644 --- a/env/env.c +++ b/env/env.c @@ -35,7 +35,7 @@ static struct env_driver *_env_driver_lookup(enum env_location loc) return NULL; } -static enum env_location env_locations[] = { +enum env_location env_locations[] = { #ifdef CONFIG_ENV_IS_IN_EEPROM ENVL_EEPROM, #endif diff --git a/include/environment.h b/include/environment.h index 1e9254f..dd6450c 100644 --- a/include/environment.h +++ b/include/environment.h @@ -215,6 +215,8 @@ enum env_location { ENVL_UNKNOWN, }; +extern enum env_location env_locations[]; + enum env_operation { ENVO_GET_CHAR, ENVO_INIT,