yaffs: Change renaming count_bits to hweight8
authorCharles Manning <cdhmanning@gmail.com>
Tue, 14 Dec 2010 23:41:45 +0000 (12:41 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 14 Dec 2010 23:41:45 +0000 (12:41 +1300)
Some conditional compilations missed in the first round...

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs_mtdif1_multi.c
yaffs_mtdif1_single.c

index 603dc97..cf9c54c 100644 (file)
@@ -238,7 +238,7 @@ int nandmtd1_read_chunk_tags(struct yaffs_dev *dev,
        deleted = !pt1.deleted;
        pt1.deleted = 1;
 #else
-       deleted = (yaffs_count_bits(((u8 *) & pt1)[8]) < 7);
+       deleted = (hweight8(((u8 *) & pt1)[8]) < 7);
 #endif
 
        /* Check the packed tags mini-ECC and correct if necessary/possible.
index 5108369..740f7f6 100644 (file)
@@ -207,7 +207,7 @@ int nandmtd1_read_chunk_tags(struct yaffs_dev *dev,
        deleted = !pt1.deleted;
        pt1.deleted = 1;
 #else
-       deleted = (yaffs_count_bits(((u8 *) & pt1)[8]) < 7);
+       deleted = (hweight8(((u8 *) & pt1)[8]) < 7);
 #endif
 
        /* Check the packed tags mini-ECC and correct if necessary/possible.