Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: Move core functions to subdir

Create a "core" subdirectory to house the central bus handling
functions.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

+24 -18
+1 -6
drivers/mmc/Makefile
··· 6 6 EXTRA_CFLAGS += -DDEBUG 7 7 endif 8 8 9 - # 10 - # Core 11 - # 12 - obj-$(CONFIG_MMC) += mmc_core.o 13 - mmc_core-y := mmc.o mmc_sysfs.o 14 - 9 + obj-$(CONFIG_MMC) += core/ 15 10 obj-$(CONFIG_MMC) += card/ 16 11 obj-$(CONFIG_MMC) += host/ 17 12
+11
drivers/mmc/core/Makefile
··· 1 + # 2 + # Makefile for the kernel mmc core. 3 + # 4 + 5 + ifeq ($(CONFIG_MMC_DEBUG),y) 6 + EXTRA_CFLAGS += -DDEBUG 7 + endif 8 + 9 + obj-$(CONFIG_MMC) += mmc_core.o 10 + mmc_core-y := core.o sysfs.o 11 +
+2 -2
drivers/mmc/mmc.c drivers/mmc/core/core.c
··· 1 1 /* 2 - * linux/drivers/mmc/mmc.c 2 + * linux/drivers/mmc/core/core.c 3 3 * 4 4 * Copyright (C) 2003-2004 Russell King, All Rights Reserved. 5 5 * SD support Copyright (C) 2004 Ian Molton, All Rights Reserved. ··· 25 25 #include <linux/mmc/host.h> 26 26 #include <linux/mmc/protocol.h> 27 27 28 - #include "mmc.h" 28 + #include "core.h" 29 29 30 30 #define CMD_RETRIES 3 31 31
+3 -3
drivers/mmc/mmc.h drivers/mmc/core/core.h
··· 1 1 /* 2 - * linux/drivers/mmc/mmc.h 2 + * linux/drivers/mmc/core/core.h 3 3 * 4 4 * Copyright (C) 2003 Russell King, All Rights Reserved. 5 5 * ··· 7 7 * it under the terms of the GNU General Public License version 2 as 8 8 * published by the Free Software Foundation. 9 9 */ 10 - #ifndef _MMC_H 11 - #define _MMC_H 10 + #ifndef _MMC_CORE_H 11 + #define _MMC_CORE_H 12 12 /* core-internal functions */ 13 13 void mmc_init_card(struct mmc_card *card, struct mmc_host *host); 14 14 int mmc_register_card(struct mmc_card *card);
+2 -2
drivers/mmc/mmc_sysfs.c drivers/mmc/core/sysfs.c
··· 1 1 /* 2 - * linux/drivers/mmc/mmc_sysfs.c 2 + * linux/drivers/mmc/core/sysfs.c 3 3 * 4 4 * Copyright (C) 2003 Russell King, All Rights Reserved. 5 5 * ··· 18 18 #include <linux/mmc/card.h> 19 19 #include <linux/mmc/host.h> 20 20 21 - #include "mmc.h" 21 + #include "core.h" 22 22 23 23 #define dev_to_mmc_card(d) container_of(d, struct mmc_card, dev) 24 24 #define to_mmc_driver(d) container_of(d, struct mmc_driver, drv)
+1 -1
include/linux/mmc/card.h
··· 10 10 #ifndef LINUX_MMC_CARD_H 11 11 #define LINUX_MMC_CARD_H 12 12 13 - #include <linux/mmc/mmc.h> 13 + #include <linux/mmc/core.h> 14 14 15 15 struct mmc_cid { 16 16 unsigned int manfid;
+1 -1
include/linux/mmc/host.h
··· 10 10 #ifndef LINUX_MMC_HOST_H 11 11 #define LINUX_MMC_HOST_H 12 12 13 - #include <linux/mmc/mmc.h> 13 + #include <linux/mmc/core.h> 14 14 15 15 struct mmc_ios { 16 16 unsigned int clock; /* clock rate */
+3 -3
include/linux/mmc/mmc.h include/linux/mmc/core.h
··· 1 1 /* 2 - * linux/include/linux/mmc/mmc.h 2 + * linux/include/linux/mmc/core.h 3 3 * 4 4 * This program is free software; you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License version 2 as 6 6 * published by the Free Software Foundation. 7 7 */ 8 - #ifndef MMC_H 9 - #define MMC_H 8 + #ifndef LINUX_MMC_CORE_H 9 + #define LINUX_MMC_CORE_H 10 10 11 11 #include <linux/interrupt.h> 12 12 #include <linux/device.h>