linux/arch/sh/kernel/cpu/irq
Nicolas Palix f701b39998 sh: Replace an explicit computation by the use of the container_of macro
The macro container_of from kernel.h performs the same
pointer arithmetic operation.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
type T;
expression mptr;
expression member;
@@

- (void *)((char *)mptr - offsetof(T, member))
+ container_of(mptr, T, member)
// </smpl>

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2009-12-09 12:36:51 +09:00
..
imask.c sh: Fixup last users of irq_chip->typename 2009-11-18 10:50:22 +09:00
intc-sh5.c sh: Fixup last users of irq_chip->typename 2009-11-18 10:50:22 +09:00
ipr.c sh: Replace an explicit computation by the use of the container_of macro 2009-12-09 12:36:51 +09:00
Makefile sh: Move the shared INTC code out to drivers/sh/ 2008-10-01 16:13:54 +09:00