acpi: Add ACPI_ prefix to IRQ enum and struct names
This is done to avoid any conflicts with same IRQ enums defined by other drivers. BUG=None BRANCH=None TEST=Compiles successfully Change-Id: I539831d853286ca45f6c36c3812a6fa9602df24c Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/18444 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
Furquan Shaikh
parent
eae4926577
commit
5b9b593f2f
@@ -936,22 +936,22 @@ static void lpc_tpm_fill_ssdt(struct device *dev)
|
||||
* PIRQ: Update interrupt vector with configured PIRQ
|
||||
* Active-Low Level-Triggered Shared
|
||||
*/
|
||||
struct acpi_irq tpm_irq_a = IRQ_LEVEL_LOW(CONFIG_TPM_PIRQ);
|
||||
struct acpi_irq tpm_irq_a = ACPI_IRQ_LEVEL_LOW(CONFIG_TPM_PIRQ);
|
||||
acpi_device_write_interrupt(&tpm_irq_a);
|
||||
} else if (tpm_read_int_vector(0) > 0) {
|
||||
u8 int_vec = tpm_read_int_vector(0);
|
||||
u8 int_pol = tpm_read_int_polarity(0);
|
||||
struct acpi_irq tpm_irq = IRQ_LEVEL_LOW(int_vec);
|
||||
struct acpi_irq tpm_irq = ACPI_IRQ_LEVEL_LOW(int_vec);
|
||||
|
||||
if (int_pol & 1)
|
||||
tpm_irq.polarity = IRQ_ACTIVE_LOW;
|
||||
tpm_irq.polarity = ACPI_IRQ_ACTIVE_LOW;
|
||||
else
|
||||
tpm_irq.polarity = IRQ_ACTIVE_HIGH;
|
||||
tpm_irq.polarity = ACPI_IRQ_ACTIVE_HIGH;
|
||||
|
||||
if (int_pol & 2)
|
||||
tpm_irq.mode = IRQ_EDGE_TRIGGERED;
|
||||
tpm_irq.mode = ACPI_IRQ_EDGE_TRIGGERED;
|
||||
else
|
||||
tpm_irq.mode = IRQ_LEVEL_TRIGGERED;
|
||||
tpm_irq.mode = ACPI_IRQ_LEVEL_TRIGGERED;
|
||||
|
||||
acpi_device_write_interrupt(&tpm_irq);
|
||||
}
|
||||
|
Reference in New Issue
Block a user