Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2cdee5a authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide: remove IDE_CHIPSET_* macros



They just obfuscate the code.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 7c199a54
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1105,7 +1105,8 @@ static int init_irq (ide_hwif_t *hwif)
		sa = IRQF_SHARED;
#endif /* __mc68000__ */

		if (IDE_CHIPSET_IS_PCI(hwif->chipset))
		if (hwif->chipset == ide_pci || hwif->chipset == ide_cmd646 ||
		    hwif->chipset == ide_ali14xx)
			sa = IRQF_SHARED;

		if (io_ports->ctl_addr)
+0 −4
Original line number Diff line number Diff line
@@ -473,10 +473,6 @@ typedef struct ide_drive_s ide_drive_t;

#define to_ide_device(dev)container_of(dev, ide_drive_t, gendev)

#define IDE_CHIPSET_PCI_MASK	\
    ((1<<ide_pci)|(1<<ide_cmd646)|(1<<ide_ali14xx))
#define IDE_CHIPSET_IS_PCI(c)	((IDE_CHIPSET_PCI_MASK >> (c)) & 1)

struct ide_task_s;
struct ide_port_info;