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

mmc: core: change quirks.c to be a header file

Rename quirks.c to quirks.h, and include it for
individual C files which need it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Shawn Lin and committed by
Ulf Hansson
28fc64af 4e03f628

+6 -9
+1 -1
drivers/mmc/core/Makefile
··· 7 7 mmc.o mmc_ops.o sd.o sd_ops.o \ 8 8 sdio.o sdio_ops.o sdio_bus.o \ 9 9 sdio_cis.o sdio_io.o sdio_irq.o \ 10 - quirks.o slot-gpio.o 10 + slot-gpio.o 11 11 mmc_core-$(CONFIG_OF) += pwrseq.o 12 12 obj-$(CONFIG_PWRSEQ_SIMPLE) += pwrseq_simple.o 13 13 obj-$(CONFIG_PWRSEQ_SD8787) += pwrseq_sd8787.o
+1
drivers/mmc/core/block.c
··· 52 52 #include "host.h" 53 53 #include "bus.h" 54 54 #include "mmc_ops.h" 55 + #include "quirks.h" 55 56 #include "sd_ops.h" 56 57 57 58 MODULE_ALIAS("mmc:block");
-2
drivers/mmc/core/card.h
··· 218 218 return c->quirks & MMC_QUIRK_BROKEN_HPI; 219 219 } 220 220 221 - void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table); 222 - 223 221 #endif
+1
drivers/mmc/core/mmc.c
··· 25 25 #include "host.h" 26 26 #include "bus.h" 27 27 #include "mmc_ops.h" 28 + #include "quirks.h" 28 29 #include "sd_ops.h" 29 30 30 31 #define DEFAULT_CMD6_TIMEOUT_MS 500
+2 -6
drivers/mmc/core/quirks.c drivers/mmc/core/quirks.h
··· 9 9 * 10 10 */ 11 11 12 - #include <linux/types.h> 13 - #include <linux/kernel.h> 14 - #include <linux/export.h> 15 - #include <linux/mmc/card.h> 16 12 #include <linux/mmc/sdio_ids.h> 17 13 18 14 #include "card.h" ··· 49 53 END_FIXUP 50 54 }; 51 55 52 - void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table) 56 + static inline void mmc_fixup_device(struct mmc_card *card, 57 + const struct mmc_fixup *table) 53 58 { 54 59 const struct mmc_fixup *f; 55 60 u64 rev = cid_rev_card(card); ··· 79 82 } 80 83 } 81 84 } 82 - EXPORT_SYMBOL(mmc_fixup_device);
+1
drivers/mmc/core/sdio.c
··· 23 23 #include "card.h" 24 24 #include "host.h" 25 25 #include "bus.h" 26 + #include "quirks.h" 26 27 #include "sd.h" 27 28 #include "sdio_bus.h" 28 29 #include "mmc_ops.h"