drivers: rk_nand: move inline function from asm code to c code