diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2022-03-03 09:36:35 +0100 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-03-07 03:49:10 +0100 |
commit | 5e776d7b20f040f3219128cee17a1191d66a0f3f (patch) | |
tree | d83846e1ed11a0c7b77583b9a6b1723bc55424ec /drivers/ata/sata_fsl.c | |
parent | ata: ahci: Rename CONFIG_SATA_LPM_MOBILE_POLICY configuration item (diff) | |
download | linux-5e776d7b20f040f3219128cee17a1191d66a0f3f.tar.xz linux-5e776d7b20f040f3219128cee17a1191d66a0f3f.zip |
ata: Drop commas after OF 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.
Rewrap entries to a single line to have a consistent style.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Acked-by: Florian Fainelli <f.fainelli@gmail.com> [ahci_brcm]
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/sata_fsl.c')
-rw-r--r-- | drivers/ata/sata_fsl.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index cfe93c420488..dd27a34e3ce9 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c @@ -1581,13 +1581,9 @@ static int sata_fsl_resume(struct platform_device *op) #endif static const struct of_device_id fsl_sata_match[] = { - { - .compatible = "fsl,pq-sata", - }, - { - .compatible = "fsl,pq-sata-v2", - }, - {}, + { .compatible = "fsl,pq-sata", }, + { .compatible = "fsl,pq-sata-v2", }, + { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, fsl_sata_match); |