[PATCH V3 19/29] mtd: use parity16 in ssfdc

2016-04-13 Thread zengzhaoxiu
From: Zhaoxiu Zeng The original get_parity return even parity of the input number. So hweight of "block_address & 0x7ff" must be odd if block_address is valid. This patch use parity16, and rearrange the code. Signed-off-by: Zhaoxiu Zeng ---

[PATCH V3 19/29] mtd: use parity16 in ssfdc

2016-04-13 Thread zengzhaoxiu
From: Zhaoxiu Zeng The original get_parity return even parity of the input number. So hweight of "block_address & 0x7ff" must be odd if block_address is valid. This patch use parity16, and rearrange the code. Signed-off-by: Zhaoxiu Zeng --- drivers/mtd/ssfdc.c | 31