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

mmc: Standardize header file inclusion checks.

Standardize the checks for multiple MMC header file inclusion,
including adding comments to terminating #endif's, and fixing
one incorrect comment.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Robert P. J. Day and committed by
Chris Ball
100e9186 94cc6a86

+41 -46
+3 -3
include/linux/mmc/boot.h
··· 1 - #ifndef MMC_BOOT_H 2 - #define MMC_BOOT_H 1 + #ifndef LINUX_MMC_BOOT_H 2 + #define LINUX_MMC_BOOT_H 3 3 4 4 enum { MMC_PROGRESS_ENTER, MMC_PROGRESS_INIT, 5 5 MMC_PROGRESS_LOAD, MMC_PROGRESS_DONE }; 6 6 7 - #endif 7 + #endif /* LINUX_MMC_BOOT_H */
+1 -1
include/linux/mmc/card.h
··· 403 403 extern void mmc_fixup_device(struct mmc_card *card, 404 404 const struct mmc_fixup *table); 405 405 406 - #endif 406 + #endif /* LINUX_MMC_CARD_H */
+1 -1
include/linux/mmc/core.h
··· 179 179 180 180 extern u32 mmc_vddrange_to_ocrmask(int vdd_min, int vdd_max); 181 181 182 - #endif 182 + #endif /* LINUX_MMC_CORE_H */
+3 -3
include/linux/mmc/dw_mmc.h
··· 11 11 * (at your option) any later version. 12 12 */ 13 13 14 - #ifndef _LINUX_MMC_DW_MMC_H_ 15 - #define _LINUX_MMC_DW_MMC_H_ 14 + #ifndef LINUX_MMC_DW_MMC_H 15 + #define LINUX_MMC_DW_MMC_H 16 16 17 17 #define MAX_MCI_SLOTS 2 18 18 ··· 219 219 struct block_settings *blk_settings; 220 220 }; 221 221 222 - #endif /* _LINUX_MMC_DW_MMC_H_ */ 222 + #endif /* LINUX_MMC_DW_MMC_H */
+1 -2
include/linux/mmc/host.h
··· 373 373 { 374 374 return host->caps & MMC_CAP_CMD23; 375 375 } 376 - #endif 377 - 376 + #endif /* LINUX_MMC_HOST_H */
+1 -1
include/linux/mmc/ioctl.h
··· 51 51 * block device operations. 52 52 */ 53 53 #define MMC_IOC_MAX_BYTES (512L * 256) 54 - #endif /* LINUX_MMC_IOCTL_H */ 54 + #endif /* LINUX_MMC_IOCTL_H */
+3 -4
include/linux/mmc/mmc.h
··· 21 21 * 15 May 2002 22 22 */ 23 23 24 - #ifndef MMC_MMC_H 25 - #define MMC_MMC_H 24 + #ifndef LINUX_MMC_MMC_H 25 + #define LINUX_MMC_MMC_H 26 26 27 27 /* Standard MMC commands (4.1) type argument response */ 28 28 /* class 1 */ ··· 327 327 #define MMC_SWITCH_MODE_CLEAR_BITS 0x02 /* Clear bits which are 1 in value */ 328 328 #define MMC_SWITCH_MODE_WRITE_BYTE 0x03 /* Set target to value */ 329 329 330 - #endif /* MMC_MMC_PROTOCOL_H */ 331 - 330 + #endif /* LINUX_MMC_MMC_H */
+1 -1
include/linux/mmc/pm.h
··· 27 27 #define MMC_PM_KEEP_POWER (1 << 0) /* preserve card power during suspend */ 28 28 #define MMC_PM_WAKE_SDIO_IRQ (1 << 1) /* wake up host system on SDIO IRQ assertion */ 29 29 30 - #endif 30 + #endif /* LINUX_MMC_PM_H */
+3 -4
include/linux/mmc/sd.h
··· 9 9 * your option) any later version. 10 10 */ 11 11 12 - #ifndef MMC_SD_H 13 - #define MMC_SD_H 12 + #ifndef LINUX_MMC_SD_H 13 + #define LINUX_MMC_SD_H 14 14 15 15 /* SD commands type argument response */ 16 16 /* class 0 */ ··· 91 91 #define SD_SWITCH_ACCESS_DEF 0 92 92 #define SD_SWITCH_ACCESS_HS 1 93 93 94 - #endif 95 - 94 + #endif /* LINUX_MMC_SD_H */
+3 -3
include/linux/mmc/sdhci-spear.h
··· 11 11 * warranty of any kind, whether express or implied. 12 12 */ 13 13 14 - #ifndef MMC_SDHCI_SPEAR_H 15 - #define MMC_SDHCI_SPEAR_H 14 + #ifndef LINUX_MMC_SDHCI_SPEAR_H 15 + #define LINUX_MMC_SDHCI_SPEAR_H 16 16 17 17 #include <linux/platform_device.h> 18 18 /* ··· 39 39 pdev->dev.platform_data = data; 40 40 } 41 41 42 - #endif /* MMC_SDHCI_SPEAR_H */ 42 + #endif /* LINUX_MMC_SDHCI_SPEAR_H */
+3 -3
include/linux/mmc/sdhci.h
··· 8 8 * the Free Software Foundation; either version 2 of the License, or (at 9 9 * your option) any later version. 10 10 */ 11 - #ifndef __SDHCI_H 12 - #define __SDHCI_H 11 + #ifndef LINUX_MMC_SDHCI_H 12 + #define LINUX_MMC_SDHCI_H 13 13 14 14 #include <linux/scatterlist.h> 15 15 #include <linux/compiler.h> ··· 162 162 163 163 unsigned long private[0] ____cacheline_aligned; 164 164 }; 165 - #endif /* __SDHCI_H */ 165 + #endif /* LINUX_MMC_SDHCI_H */
+3 -4
include/linux/mmc/sdio.h
··· 9 9 * your option) any later version. 10 10 */ 11 11 12 - #ifndef MMC_SDIO_H 13 - #define MMC_SDIO_H 12 + #ifndef LINUX_MMC_SDIO_H 13 + #define LINUX_MMC_SDIO_H 14 14 15 15 /* SDIO commands type argument response */ 16 16 #define SD_IO_SEND_OP_COND 5 /* bcr [23:0] OCR R4 */ ··· 161 161 162 162 #define SDIO_FBR_BLKSIZE 0x10 /* block size (2 bytes) */ 163 163 164 - #endif 165 - 164 + #endif /* LINUX_MMC_SDIO_H */
+3 -4
include/linux/mmc/sdio_func.h
··· 9 9 * your option) any later version. 10 10 */ 11 11 12 - #ifndef MMC_SDIO_FUNC_H 13 - #define MMC_SDIO_FUNC_H 12 + #ifndef LINUX_MMC_SDIO_FUNC_H 13 + #define LINUX_MMC_SDIO_FUNC_H 14 14 15 15 #include <linux/device.h> 16 16 #include <linux/mod_devicetable.h> ··· 161 161 extern mmc_pm_flag_t sdio_get_host_pm_caps(struct sdio_func *func); 162 162 extern int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags); 163 163 164 - #endif 165 - 164 + #endif /* LINUX_MMC_SDIO_FUNC_H */
+3 -3
include/linux/mmc/sdio_ids.h
··· 2 2 * SDIO Classes, Interface Types, Manufacturer IDs, etc. 3 3 */ 4 4 5 - #ifndef MMC_SDIO_IDS_H 6 - #define MMC_SDIO_IDS_H 5 + #ifndef LINUX_MMC_SDIO_IDS_H 6 + #define LINUX_MMC_SDIO_IDS_H 7 7 8 8 /* 9 9 * Standard SDIO Function Interfaces ··· 44 44 #define SDIO_DEVICE_ID_SIANO_NOVA_A0 0x1100 45 45 #define SDIO_DEVICE_ID_SIANO_STELLAR 0x5347 46 46 47 - #endif 47 + #endif /* LINUX_MMC_SDIO_IDS_H */
+3 -3
include/linux/mmc/sh_mmcif.h
··· 11 11 * 12 12 */ 13 13 14 - #ifndef __SH_MMCIF_H__ 15 - #define __SH_MMCIF_H__ 14 + #ifndef LINUX_MMC_SH_MMCIF_H 15 + #define LINUX_MMC_SH_MMCIF_H 16 16 17 17 #include <linux/io.h> 18 18 #include <linux/platform_device.h> ··· 220 220 sh_mmcif_boot_cmd(base, 0x03400040, 0x00010000); 221 221 } 222 222 223 - #endif /* __SH_MMCIF_H__ */ 223 + #endif /* LINUX_MMC_SH_MMCIF_H */
+3 -3
include/linux/mmc/sh_mobile_sdhi.h
··· 1 - #ifndef __SH_MOBILE_SDHI_H__ 2 - #define __SH_MOBILE_SDHI_H__ 1 + #ifndef LINUX_MMC_SH_MOBILE_SDHI_H 2 + #define LINUX_MMC_SH_MOBILE_SDHI_H 3 3 4 4 #include <linux/types.h> 5 5 ··· 17 17 int (*get_cd)(struct platform_device *pdev); 18 18 }; 19 19 20 - #endif /* __SH_MOBILE_SDHI_H__ */ 20 + #endif /* LINUX_MMC_SH_MOBILE_SDHI_H */
+3 -3
include/linux/mmc/tmio.h
··· 12 12 * 13 13 * TC6393XB TC6391XB TC6387XB T7L66XB ASIC3 14 14 */ 15 - #ifndef _LINUX_MMC_TMIO_H_ 16 - #define _LINUX_MMC_TMIO_H_ 15 + #ifndef LINUX_MMC_TMIO_H 16 + #define LINUX_MMC_TMIO_H 17 17 18 18 #define CTL_SD_CMD 0x00 19 19 #define CTL_ARG_REG 0x04 ··· 60 60 61 61 #define TMIO_BBS 512 /* Boot block size */ 62 62 63 - #endif /* _LINUX_MMC_TMIO_H_ */ 63 + #endif /* LINUX_MMC_TMIO_H */