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

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

ide: constify struct ide_port_info

parent 039788e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -194,7 +194,7 @@ static void __devinit init_hwif_aec62xx(ide_hwif_t *hwif)
	}
	}
}
}


static struct ide_port_info aec62xx_chipsets[] __devinitdata = {
static const struct ide_port_info aec62xx_chipsets[] __devinitdata = {
	{	/* 0 */
	{	/* 0 */
		.name		= "AEC6210",
		.name		= "AEC6210",
		.init_chipset	= init_chipset_aec62xx,
		.init_chipset	= init_chipset_aec62xx,
+1 −1
Original line number Original line Diff line number Diff line
@@ -746,7 +746,7 @@ static void __devinit init_dma_ali15x3 (ide_hwif_t *hwif, unsigned long dmabase)
	ide_setup_dma(hwif, dmabase, 8);
	ide_setup_dma(hwif, dmabase, 8);
}
}


static struct ide_port_info ali15x3_chipset __devinitdata = {
static const struct ide_port_info ali15x3_chipset __devinitdata = {
	.name		= "ALI15X3",
	.name		= "ALI15X3",
	.init_chipset	= init_chipset_ali15x3,
	.init_chipset	= init_chipset_ali15x3,
	.init_hwif	= init_hwif_ali15x3,
	.init_hwif	= init_hwif_ali15x3,
+2 −2
Original line number Original line Diff line number Diff line
@@ -77,7 +77,7 @@ static struct amd_ide_chip {
};
};


static struct amd_ide_chip *amd_config;
static struct amd_ide_chip *amd_config;
static struct ide_port_info *amd_chipset;
static const struct ide_port_info *amd_chipset;
static unsigned int amd_80w;
static unsigned int amd_80w;
static unsigned int amd_clock;
static unsigned int amd_clock;


@@ -295,7 +295,7 @@ static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif)
		.mwdma_mask	= ATA_MWDMA2,				\
		.mwdma_mask	= ATA_MWDMA2,				\
	}
	}


static struct ide_port_info amd74xx_chipsets[] __devinitdata = {
static const struct ide_port_info amd74xx_chipsets[] __devinitdata = {
	/*  0 */ DECLARE_AMD_DEV("AMD7401"),
	/*  0 */ DECLARE_AMD_DEV("AMD7401"),
	/*  1 */ DECLARE_AMD_DEV("AMD7409"),
	/*  1 */ DECLARE_AMD_DEV("AMD7409"),
	/*  2 */ DECLARE_AMD_DEV("AMD7411"),
	/*  2 */ DECLARE_AMD_DEV("AMD7411"),
+1 −1
Original line number Original line Diff line number Diff line
@@ -189,7 +189,7 @@ static void __devinit init_hwif_atiixp(ide_hwif_t *hwif)
	hwif->dma_host_off = &atiixp_dma_host_off;
	hwif->dma_host_off = &atiixp_dma_host_off;
}
}


static struct ide_port_info atiixp_pci_info[] __devinitdata = {
static const struct ide_port_info atiixp_pci_info[] __devinitdata = {
	{	/* 0 */
	{	/* 0 */
		.name		= "ATIIXP",
		.name		= "ATIIXP",
		.init_hwif	= init_hwif_atiixp,
		.init_hwif	= init_hwif_atiixp,
+1 −1
Original line number Original line Diff line number Diff line
@@ -548,7 +548,7 @@ static void __devinit init_hwif_cmd64x(ide_hwif_t *hwif)
	}
	}
}
}


static struct ide_port_info cmd64x_chipsets[] __devinitdata = {
static const struct ide_port_info cmd64x_chipsets[] __devinitdata = {
	{	/* 0 */
	{	/* 0 */
		.name		= "CMD643",
		.name		= "CMD643",
		.init_chipset	= init_chipset_cmd64x,
		.init_chipset	= init_chipset_cmd64x,
Loading