]> 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, 29 Nov 2012 03:17:32 +0000 (14:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:13 +0000 (16:23 +1100)
commit9f4ac73f3843851dd046f8aef8f54c932d99f493
tree86417393dba612f2b168e98344b3c9be25ba87a0
parentb4f615e971b155f5841b2697ff28ea7f204828b7
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