spmi: pmic-arb: optimize qpnpint_irq_set_type function
authorKiran Gunda <kgunda@codeaurora.org>
Fri, 28 Jul 2017 07:10:39 +0000 (12:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 11:51:19 +0000 (13:51 +0200)
commit325255bc9554504a2545284655d4fd8e74c06c22
treecc451b5e2680305a3e0d709ea7847e8ca1313a7e
parentf2f3156472b09aed3c7f3ec38db4d09f15a58f0d
spmi: pmic-arb: optimize qpnpint_irq_set_type function

Optimize the qpnpint_irq_set_type() by using a local variable
to hold the handler type. Also clean up other variable usage.

Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c