spmi: qpnp-int: Fix bug in setting interrupt type

Fix a bug where the code neglects to set the INT_POLARITY_LOW
register to the correct value for the case IRQF_TRIGGER_LOW.
It should be set with a '1' for the corresponding interrupt bit.

Change-Id: Ib05193633b0e7798f5e8ac4ddfb8744a67f8c546
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
This commit is contained in:
Michael Bohan 2012-06-07 17:05:41 -07:00 committed by Stephen Boyd
parent 1834bcc3fb
commit a7285c4cc3

View File

@ -240,7 +240,7 @@ static int qpnpint_irq_set_type(struct irq_data *d, unsigned int flow_type)
if (flow_type & IRQF_TRIGGER_HIGH)
per_d->pol_high |= irq_d->mask_shift;
else
per_d->pol_high &= ~irq_d->mask_shift;
per_d->pol_low |= irq_d->mask_shift;
}
buf[0] = per_d->type;