]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/base/node.c: cleanup node_state_attr[]
authorLai Jiangshan <laijs@cn.fujitsu.com>
Thu, 15 Nov 2012 02:38:00 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:25:53 +0000 (17:25 +1100)
commit9380aba1a75b3895cd32db22dec2dc56b059985d
treeb0fbc8132011c544d073ddb8ecc69998ec5a63e8
parent61ddd5a78839edfa2c18bf6a07c3ccd18d2f1073
drivers/base/node.c: cleanup node_state_attr[]

use [index] = init_value
use N_xxxxx instead of hardcode.

Make it more readability and easier to add new state.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/base/node.c