From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phycard.co.uk ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZTq1Y-0005Ld-51 for barebox@lists.infradead.org; Mon, 24 Aug 2015 11:34:49 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 7597AA00363 for ; Mon, 24 Aug 2015 13:36:19 +0200 (CEST) From: Daniel Schultz Date: Mon, 24 Aug 2015 13:32:14 +0200 Message-Id: <1440415935-32674-2-git-send-email-d.schultz@phytec.de> In-Reply-To: <1440415935-32674-1-git-send-email-d.schultz@phytec.de> References: <1440415935-32674-1-git-send-email-d.schultz@phytec.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/3] drivers: mci: Make two functions public To: barebox@lists.infradead.org There is no possibility to read/write to the extended CSD register of MMC devices from a command. To avoid duplicated driver code, two driver functions have to be public. Signed-off-by: Daniel Schultz --- drivers/mci/mci-core.c | 4 ++-- include/mci.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index bd5cae2..c22f932 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -370,7 +370,7 @@ static int mmc_send_op_cond(struct mci *mci) * Note: Only cards newer than Version 1.1 (Physical Layer Spec) support * this command */ -static int mci_send_ext_csd(struct mci *mci, char *ext_csd) +int mci_send_ext_csd(struct mci *mci, char *ext_csd) { struct mci_cmd cmd; struct mci_data data; @@ -394,7 +394,7 @@ static int mci_send_ext_csd(struct mci *mci, char *ext_csd) * @param value FIXME * @return Transaction status (0 on success) */ -static int mci_switch(struct mci *mci, unsigned set, unsigned index, +int mci_switch(struct mci *mci, unsigned set, unsigned index, unsigned value) { struct mci_cmd cmd; diff --git a/include/mci.h b/include/mci.h index c5ab5b3..a7bf8cd 100644 --- a/include/mci.h +++ b/include/mci.h @@ -372,6 +372,9 @@ struct mci { int mci_register(struct mci_host*); void mci_of_parse(struct mci_host *host); int mci_detect_card(struct mci_host *); +int mci_send_ext_csd(struct mci *mci, char *ext_csd); +int mci_switch(struct mci *mci, unsigned set, unsigned index, + unsigned value); static inline int mmc_host_is_spi(struct mci_host *host) { -- 1.9.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox