Skip to content

Commit 100e918

Browse files
robertpjdaycjb
authored andcommitted
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>
1 parent 94cc6a8 commit 100e918

17 files changed

Lines changed: 41 additions & 46 deletions

File tree

‎include/linux/mmc/boot.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#ifndef MMC_BOOT_H
2-
#define MMC_BOOT_H
1+
#ifndef LINUX_MMC_BOOT_H
2+
#define LINUX_MMC_BOOT_H
33

44
enum { MMC_PROGRESS_ENTER, MMC_PROGRESS_INIT,
55
MMC_PROGRESS_LOAD, MMC_PROGRESS_DONE };
66

7-
#endif
7+
#endif /* LINUX_MMC_BOOT_H */

‎include/linux/mmc/card.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,4 +403,4 @@ extern void mmc_unregister_driver(struct mmc_driver *);
403403
extern void mmc_fixup_device(struct mmc_card *card,
404404
const struct mmc_fixup *table);
405405

406-
#endif
406+
#endif /* LINUX_MMC_CARD_H */

‎include/linux/mmc/core.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,4 @@ static inline void mmc_claim_host(struct mmc_host *host)
179179

180180
extern u32 mmc_vddrange_to_ocrmask(int vdd_min, int vdd_max);
181181

182-
#endif
182+
#endif /* LINUX_MMC_CORE_H */

‎include/linux/mmc/dw_mmc.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* (at your option) any later version.
1212
*/
1313

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
1616

1717
#define MAX_MCI_SLOTS 2
1818

@@ -219,4 +219,4 @@ struct dw_mci_board {
219219
struct block_settings *blk_settings;
220220
};
221221

222-
#endif /* _LINUX_MMC_DW_MMC_H_ */
222+
#endif /* LINUX_MMC_DW_MMC_H */

‎include/linux/mmc/host.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,5 +373,4 @@ static inline int mmc_host_cmd23(struct mmc_host *host)
373373
{
374374
return host->caps & MMC_CAP_CMD23;
375375
}
376-
#endif
377-
376+
#endif /* LINUX_MMC_HOST_H */

‎include/linux/mmc/ioctl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ struct mmc_ioc_cmd {
5151
* block device operations.
5252
*/
5353
#define MMC_IOC_MAX_BYTES (512L * 256)
54-
#endif /* LINUX_MMC_IOCTL_H */
54+
#endif /* LINUX_MMC_IOCTL_H */

‎include/linux/mmc/mmc.h‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* 15 May 2002
2222
*/
2323

24-
#ifndef MMC_MMC_H
25-
#define MMC_MMC_H
24+
#ifndef LINUX_MMC_MMC_H
25+
#define LINUX_MMC_MMC_H
2626

2727
/* Standard MMC commands (4.1) type argument response */
2828
/* class 1 */
@@ -327,5 +327,4 @@ struct _mmc_csd {
327327
#define MMC_SWITCH_MODE_CLEAR_BITS 0x02 /* Clear bits which are 1 in value */
328328
#define MMC_SWITCH_MODE_WRITE_BYTE 0x03 /* Set target to value */
329329

330-
#endif /* MMC_MMC_PROTOCOL_H */
331-
330+
#endif /* LINUX_MMC_MMC_H */

‎include/linux/mmc/pm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ typedef unsigned int mmc_pm_flag_t;
2727
#define MMC_PM_KEEP_POWER (1 << 0) /* preserve card power during suspend */
2828
#define MMC_PM_WAKE_SDIO_IRQ (1 << 1) /* wake up host system on SDIO IRQ assertion */
2929

30-
#endif
30+
#endif /* LINUX_MMC_PM_H */

‎include/linux/mmc/sd.h‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* your option) any later version.
1010
*/
1111

12-
#ifndef MMC_SD_H
13-
#define MMC_SD_H
12+
#ifndef LINUX_MMC_SD_H
13+
#define LINUX_MMC_SD_H
1414

1515
/* SD commands type argument response */
1616
/* class 0 */
@@ -91,5 +91,4 @@
9191
#define SD_SWITCH_ACCESS_DEF 0
9292
#define SD_SWITCH_ACCESS_HS 1
9393

94-
#endif
95-
94+
#endif /* LINUX_MMC_SD_H */

‎include/linux/mmc/sdhci-spear.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* warranty of any kind, whether express or implied.
1212
*/
1313

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
1616

1717
#include <linux/platform_device.h>
1818
/*
@@ -39,4 +39,4 @@ sdhci_set_plat_data(struct platform_device *pdev, struct sdhci_plat_data *data)
3939
pdev->dev.platform_data = data;
4040
}
4141

42-
#endif /* MMC_SDHCI_SPEAR_H */
42+
#endif /* LINUX_MMC_SDHCI_SPEAR_H */

0 commit comments

Comments
 (0)