From patchwork Thu Dec 18 14:44:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 42460 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 95D2726C8B for ; Thu, 18 Dec 2014 14:45:07 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf853373wgh.9 for ; Thu, 18 Dec 2014 06:45:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=4uHeudvRt1Vr5nSEiEulF2VCxdegDfWXJGxnZs9HH/Y=; b=RHiMSzz/iAf48ffnq7vAbY3R4huHHrQspif6hA8mIDvREvOEagRlI+HH1MbhZuGavH N4Nkm81hv5UUCGCicM/QDJnGhNmvq9eogP/7MhjpR2IBoA7LBxdn3Yn28yu2eH1K95fd HXZyxloklNZssrT/KE3FmU9bjxHjQDDCkuc/lvL1tzwJtTL8N/+JBK8GxXQx94m9X/JM ZEz8NQwLwrE1U3CNgTPikLhE27QRD1go7d4vMjOvE3od/f9tZTUebyvPU8H3XvVa77+8 RGwSzNYeND8YR2nyYSXZ6XOfuE64j7+Y/pGUqWCNFwZTLAyMQvfTtCF1CAxnJpodGhMi iR1w== X-Gm-Message-State: ALoCoQlYvyOJiChkpNGHvBgUU3FZJLY4/zpyr+wuQ7+tByMfpcioPikj2PXGn6e1I5X+hLqVw/Hu X-Received: by 10.112.14.2 with SMTP id l2mr382547lbc.5.1418913906860; Thu, 18 Dec 2014 06:45:06 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.201 with SMTP id x9ls855603lae.89.gmail; Thu, 18 Dec 2014 06:45:06 -0800 (PST) X-Received: by 10.152.23.38 with SMTP id j6mr2602125laf.81.1418913906717; Thu, 18 Dec 2014 06:45:06 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id w2si7042057laz.109.2014.12.18.06.45.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 06:45:06 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id hv19so1109076lab.14 for ; Thu, 18 Dec 2014 06:45:06 -0800 (PST) X-Received: by 10.112.189.10 with SMTP id ge10mr2588080lbc.23.1418913906296; Thu, 18 Dec 2014 06:45:06 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1728745lbb; Thu, 18 Dec 2014 06:45:05 -0800 (PST) X-Received: by 10.180.73.143 with SMTP id l15mr24872221wiv.24.1418913892857; Thu, 18 Dec 2014 06:44:52 -0800 (PST) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com. [209.85.212.178]) by mx.google.com with ESMTPS id bc4si12449183wjb.8.2014.12.18.06.44.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 06:44:52 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.178 as permitted sender) client-ip=209.85.212.178; Received: by mail-wi0-f178.google.com with SMTP id em10so2034854wid.17 for ; Thu, 18 Dec 2014 06:44:52 -0800 (PST) X-Received: by 10.194.90.193 with SMTP id by1mr5421304wjb.12.1418913892569; Thu, 18 Dec 2014 06:44:52 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id a14sm25013698wib.22.2014.12.18.06.44.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Dec 2014 06:44:51 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball Subject: [PATCH 5/7] mmc: slot-gpio: Make mmc_gpio_alloc() available for MMC core Date: Thu, 18 Dec 2014 15:44:34 +0100 Message-Id: <1418913876-13937-6-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418913876-13937-1-git-send-email-ulf.hansson@linaro.org> References: <1418913876-13937-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , As a step in moving slot-gpio functions/structs closer to the MMC core, let's add a local header file for slot-gpio. In this initial step we move mmc_gpio_alloc() into the header file, to make it available for the MMC core. Following patches will show the utilization of it. Signed-off-by: Ulf Hansson --- drivers/mmc/core/slot-gpio.c | 4 +++- drivers/mmc/core/slot-gpio.h | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 drivers/mmc/core/slot-gpio.h diff --git a/drivers/mmc/core/slot-gpio.c b/drivers/mmc/core/slot-gpio.c index f9a0c6e..ec918c2 100644 --- a/drivers/mmc/core/slot-gpio.c +++ b/drivers/mmc/core/slot-gpio.c @@ -18,6 +18,8 @@ #include #include +#include "slot-gpio.h" + struct mmc_gpio { struct gpio_desc *ro_gpio; struct gpio_desc *cd_gpio; @@ -38,7 +40,7 @@ static irqreturn_t mmc_gpio_cd_irqt(int irq, void *dev_id) return IRQ_HANDLED; } -static int mmc_gpio_alloc(struct mmc_host *host) +int mmc_gpio_alloc(struct mmc_host *host) { size_t len = strlen(dev_name(host->parent)) + 4; struct mmc_gpio *ctx; diff --git a/drivers/mmc/core/slot-gpio.h b/drivers/mmc/core/slot-gpio.h new file mode 100644 index 0000000..8c1854d --- /dev/null +++ b/drivers/mmc/core/slot-gpio.h @@ -0,0 +1,13 @@ +/* + * Copyright (C) 2014 Linaro Ltd + * + * Author: Ulf Hansson + * + * License terms: GNU General Public License (GPL) version 2 + */ +#ifndef _MMC_CORE_SLOTGPIO_H +#define _MMC_CORE_SLOTGPIO_H + +int mmc_gpio_alloc(struct mmc_host *host); + +#endif