drivers/base/memory.c: introduce help macro to_memory_block
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Wed, 28 Aug 2013 06:38:27 +0000 (14:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 22:47:38 +0000 (15:47 -0700)
commit7315f0ccfc283ae998ca4d8102de83bba21936fa
tree7eb979ea97f74792da676b47bc59dd21c9ce66f3
parentbd8c154a62d47b0ec2abf87e35dccf081781d81c
drivers/base/memory.c: introduce help macro to_memory_block

Introduce help macro to_memory_block to hide the conversion(device-->memory_block),
just clean up.

Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/memory.c