* onehot is if and only if onebit is set.
*
*/
-int onehot(unsigned short value)
+static int onehot(unsigned short value)
{
return ((value & (value-1)) == 0);
}
* 1 if single bit error found and corrected.
* -1 if multiple ECC errors found.
*/
-int xnandps_correct_data(struct mtd_info *mtd, unsigned char *buf,
+static int xnandps_correct_data(struct mtd_info *mtd, unsigned char *buf,
unsigned char *read_ecc, unsigned char *calc_ecc)
{
unsigned char bit_addr;
*
* This functions writes data and hardware generated ECC values in to the page.
*/
-void xnandps_write_page_hwecc(struct mtd_info *mtd,
+static void xnandps_write_page_hwecc(struct mtd_info *mtd,
struct nand_chip *chip, const uint8_t *buf)
{
int i, eccsize = chip->ecc.size;
*
* returns: 0 always and updates ECC operation status in to MTD structure
*/
-int xnandps_read_page_hwecc(struct mtd_info *mtd,
+static int xnandps_read_page_hwecc(struct mtd_info *mtd,
struct nand_chip *chip, uint8_t *buf, int page)
{
int i, stat, eccsize = chip->ecc.size;