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

mmc: host: Drop commas after SoC match table sentinels

It does not make sense to have a comma after a sentinel, as any new
elements must be added before the sentinel.

Add comments to clarify the purpose of the empty elements.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/9050fa278eaaa9e6ec719a3b158a2fad285560d0.1646311673.git.geert+renesas@glider.be
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Geert Uytterhoeven and committed by
Ulf Hansson
0ffd498d 7a9f778c

+6 -6
+1 -1
drivers/mmc/host/renesas_sdhi_internal_dmac.c
··· 212 212 { .soc_id = "r8a7795", .revision = "ES2.0", .data = &sdhi_quirks_4tap }, 213 213 { .soc_id = "r8a7796", .revision = "ES1.[012]", .data = &sdhi_quirks_4tap_nohs400 }, 214 214 { .soc_id = "r8a7796", .revision = "ES1.*", .data = &sdhi_quirks_r8a7796_es13 }, 215 - { /* Sentinel. */ }, 215 + { /* Sentinel. */ } 216 216 }; 217 217 218 218 static const struct renesas_sdhi_of_data_with_quirks of_r8a7795_compatible = {
+5 -5
drivers/mmc/host/sdhci-of-esdhc.c
··· 934 934 { .family = "QorIQ T1040", }, 935 935 { .family = "QorIQ T2080", }, 936 936 { .family = "QorIQ LS1021A", }, 937 - { }, 937 + { /* sentinel */ } 938 938 }; 939 939 940 940 static struct soc_device_attribute soc_tuning_erratum_type2[] = { ··· 944 944 { .family = "QorIQ LS1080A", }, 945 945 { .family = "QorIQ LS2080A", }, 946 946 { .family = "QorIQ LA1575A", }, 947 - { }, 947 + { /* sentinel */ } 948 948 }; 949 949 950 950 static void esdhc_tuning_block_enable(struct sdhci_host *host, bool enable) ··· 1316 1316 static struct soc_device_attribute soc_incorrect_hostver[] = { 1317 1317 { .family = "QorIQ T4240", .revision = "1.0", }, 1318 1318 { .family = "QorIQ T4240", .revision = "2.0", }, 1319 - { }, 1319 + { /* sentinel */ } 1320 1320 }; 1321 1321 1322 1322 static struct soc_device_attribute soc_fixup_sdhc_clkdivs[] = { 1323 1323 { .family = "QorIQ LX2160A", .revision = "1.0", }, 1324 1324 { .family = "QorIQ LX2160A", .revision = "2.0", }, 1325 1325 { .family = "QorIQ LS1028A", .revision = "1.0", }, 1326 - { }, 1326 + { /* sentinel */ } 1327 1327 }; 1328 1328 1329 1329 static struct soc_device_attribute soc_unreliable_pulse_detection[] = { 1330 1330 { .family = "QorIQ LX2160A", .revision = "1.0", }, 1331 1331 { .family = "QorIQ LX2160A", .revision = "2.0", }, 1332 1332 { .family = "QorIQ LS1028A", .revision = "1.0", }, 1333 - { }, 1333 + { /* sentinel */ } 1334 1334 }; 1335 1335 1336 1336 static void esdhc_init(struct platform_device *pdev, struct sdhci_host *host)