From: Sergei Shtylyov Date: Sat, 14 Dec 2013 00:09:31 +0000 (+0300) Subject: irq-renesas-irqc: simplify irq_set_type() method X-Git-Tag: drivers-for-linus~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce70af18801fd8dac6e9f85308294948916e84d6;p=pandora-kernel.git irq-renesas-irqc: simplify irq_set_type() method Value 0 of the sense selection field of CONFIG_n register means "disable event detection" and serves in irqc_sense[] for marking the invalid values of the IRQ type (by just omitting initializers). There is no need for INTC_IRQ_SENSE_VALID and hence INTC_IRQ_SENSE() as all field values matching to the valid IRQ types are non-zero anyway. Signed-off-by: Sergei Shtylyov Acked-by: Magnus Damm Signed-off-by: Simon Horman --- Reading git-diff-tree failed