mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
drivers: rk_nand: move inline function from asm code to c code
move inline function "copy_from_user" and "copy_to_user" from rk_ftl_arm_v8.S to rk_nand_base.c Change-Id: Ibac121c2ef04357d1abb35c4dd225bd424503e02 Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,7 @@
|
||||
#include <asm/cacheflush.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/uaccess.h>
|
||||
#ifdef CONFIG_OF
|
||||
#include <linux/of.h>
|
||||
#endif
|
||||
@@ -129,6 +130,18 @@ int rknand_get_boot_media(void)
|
||||
}
|
||||
EXPORT_SYMBOL(rknand_get_boot_media);
|
||||
|
||||
unsigned long rk_copy_from_user(void *to, const void __user *from,
|
||||
unsigned long n)
|
||||
{
|
||||
return copy_from_user(to, from, n);
|
||||
}
|
||||
|
||||
unsigned long rk_copy_to_user(void __user *to, const void *from,
|
||||
unsigned long n)
|
||||
{
|
||||
return copy_to_user(to, from, n);
|
||||
}
|
||||
|
||||
int rk_nand_schedule_enable_config(int en)
|
||||
{
|
||||
int tmp = rk_nand_wait_busy_schedule;
|
||||
|
||||
Reference in New Issue
Block a user