From patchwork Tue Oct 14 11:45:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 38706 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D306820549 for ; Tue, 14 Oct 2014 11:45:34 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id m15sf5100057wgh.3 for ; Tue, 14 Oct 2014 04:45:34 -0700 (PDT) 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:cc: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=04AcDn9HZwobRvMiVDsGqL/KqS372iGPUYQEjqpIeR4=; b=fx/Opt2WBJJFKJnkaAFzUK70P81zXkeg64EuFcCLbpwTv2BFvUjpJ2UsI1p6ZJsQkn j4bT/9U6KyH5mK2BhQk7ITre50tqNxCw9Lu1mZ1YZVy6a2PcWE0zF2mNvU1QsXOEx8x9 4Wzp+h0l7Z9aBSmjhSnNrTqrgbZM+ADJxq/KY31O2R5j7qAJ8E5aQQvZDsTZsaVcYzEU 7Fy4mOtIiCeWIuW4Dvtg40uJUGEdpi4rg2N9GjKYYZwm8PtCDyhPvB4c+MyaUcGpFSA3 2GaHlUws6JvyjzInLKxVxIqm8j7dwSY1eGXgxbE2TnOrrxqaWAU8+QIEJ53cR5F+J58N /yoA== X-Gm-Message-State: ALoCoQn6st2gXJDPP1W/uA+XKXurTEGzz4W3NzwiNPNa5mgMuDNwqO9Jt9p0IeU117gcNvcqECUC X-Received: by 10.152.26.72 with SMTP id j8mr806107lag.3.1413287134065; Tue, 14 Oct 2014 04:45:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.68 with SMTP id p4ls560493laa.52.gmail; Tue, 14 Oct 2014 04:45:33 -0700 (PDT) X-Received: by 10.152.19.9 with SMTP id a9mr4741411lae.41.1413287133830; Tue, 14 Oct 2014 04:45:33 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by mx.google.com with ESMTPS id yr15si26095370lbb.62.2014.10.14.04.45.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 04:45:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id pv20so8416734lab.34 for ; Tue, 14 Oct 2014 04:45:33 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr4836738lah.56.1413287133767; Tue, 14 Oct 2014 04:45:33 -0700 (PDT) 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.84.229 with SMTP id c5csp377697lbz; Tue, 14 Oct 2014 04:45:33 -0700 (PDT) X-Received: by 10.112.167.38 with SMTP id zl6mr4853604lbb.34.1413287133390; Tue, 14 Oct 2014 04:45:33 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id p3si26184967laj.14.2014.10.14.04.45.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 04:45:33 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ge10so8218926lab.24 for ; Tue, 14 Oct 2014 04:45:33 -0700 (PDT) X-Received: by 10.152.178.197 with SMTP id da5mr4725240lac.83.1413287133213; Tue, 14 Oct 2014 04:45:33 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id xh2sm5520440lbb.7.2014.10.14.04.45.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Oct 2014 04:45:32 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Ulf Hansson Subject: [PATCH 2/7] mmc: core: Don't export the to_sdio_driver macro Date: Tue, 14 Oct 2014 13:45:15 +0200 Message-Id: <1413287120-10914-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413287120-10914-1-git-send-email-ulf.hansson@linaro.org> References: <1413287120-10914-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.47 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: , The macro is only used by the mmc core, so let's move it in there. Signed-off-by: Ulf Hansson --- drivers/mmc/core/sdio_bus.c | 2 ++ include/linux/mmc/sdio_func.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 5c02367..4805cc6 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -25,6 +25,8 @@ #include "sdio_cis.h" #include "sdio_bus.h" +#define to_sdio_driver(d) container_of(d, struct sdio_driver, drv) + /* show configuration fields */ #define sdio_config_attr(field, format_string) \ static ssize_t \ diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h index 50f0bc9..aab032a 100644 --- a/include/linux/mmc/sdio_func.h +++ b/include/linux/mmc/sdio_func.h @@ -84,8 +84,6 @@ struct sdio_driver { struct device_driver drv; }; -#define to_sdio_driver(d) container_of(d, struct sdio_driver, drv) - /** * SDIO_DEVICE - macro used to describe a specific SDIO device * @vend: the 16 bit manufacturer code