Linux ATA/IDE development
 help / color / mirror / Atom feed
* [PATCH] ata: ata_generic: use IS_ENABLED() macro
@ 2024-09-09 20:51 Sergey Shtylyov
  2024-09-10  4:50 ` Damien Le Moal
  0 siblings, 1 reply; 11+ messages in thread
From: Sergey Shtylyov @ 2024-09-09 20:51 UTC (permalink / raw)
  To: linux-ide, Damien Le Moal, Niklas Cassel; +Cc: lvc-project

Replace now gone out of fashion defined(CONFIG_PATA_TOSHIBA[_MODULE])
with the new-fangled IS_ENABLED() macro in the ata_generic[] definition.

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>

---
This patch is against the for-next branch of the LibATA Group's repo.

 drivers/ata/ata_generic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/ata/ata_generic.c
===================================================================
--- linux.orig/drivers/ata/ata_generic.c
+++ linux/drivers/ata/ata_generic.c
@@ -220,7 +220,7 @@ static struct pci_device_id ata_generic[
 	{ PCI_DEVICE(PCI_VENDOR_ID_OPTI,   PCI_DEVICE_ID_OPTI_82C558), },
 	{ PCI_DEVICE(PCI_VENDOR_ID_CENATEK,PCI_DEVICE_ID_CENATEK_IDE),
 	  .driver_data = ATA_GEN_FORCE_DMA },
-#if !defined(CONFIG_PATA_TOSHIBA) && !defined(CONFIG_PATA_TOSHIBA_MODULE)
+#if !IS_ENABLED(CONFIG_PATA_TOSHIBA)
 	{ PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_1), },
 	{ PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_2),  },
 	{ PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_3),  },

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-09-14 17:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-09 20:51 [PATCH] ata: ata_generic: use IS_ENABLED() macro Sergey Shtylyov
2024-09-10  4:50 ` Damien Le Moal
2024-09-10  8:52   ` Sergey Shtylyov
2024-09-10 13:09     ` Damien Le Moal
2024-09-10 14:32       ` Sergey Shtylyov
2024-09-10 14:36       ` Sergey Shtylyov
2024-09-10 22:22         ` Damien Le Moal
2024-09-11 17:14           ` Sergey Shtylyov
2024-09-13  6:57             ` Niklas Cassel
2024-09-13 19:36               ` Sergey Shtylyov
2024-09-14 17:53           ` Sergey Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox