Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
d5c5e78a
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d5c5e78a
编写于
11月 07, 2005
作者:
T
Thomas Gleixner
提交者:
Thomas Gleixner
11月 07, 2005
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MTD] OneNAND: Clean up trailing white spaces
Signed-off-by:
N
Thomas Gleixner
<
tglx@linutronix.de
>
上级
61b03bd7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
drivers/mtd/onenand/onenand_base.c
drivers/mtd/onenand/onenand_base.c
+12
-12
未找到文件。
drivers/mtd/onenand/onenand_base.c
浏览文件 @
d5c5e78a
...
...
@@ -255,7 +255,7 @@ static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t le
/* Write 'BSA, BSC' of DataRAM */
value
=
onenand_buffer_address
(
dataram
,
sectors
,
count
);
this
->
write_word
(
value
,
this
->
base
+
ONENAND_REG_START_BUFFER
);
if
(
readcmd
)
{
/* Select DataRAM for DDP */
value
=
onenand_bufferram_address
(
this
,
block
);
...
...
@@ -433,7 +433,7 @@ static int onenand_write_bufferram(struct mtd_info *mtd, int area,
* onenand_check_bufferram - [GENERIC] Check BufferRAM information
* @param mtd MTD data structure
* @param addr address to check
* @return 1 if there are valid data, otherwise 0
* @return 1 if there are valid data, otherwise 0
*
* Check bufferram if there is data we required
*/
...
...
@@ -442,7 +442,7 @@ static int onenand_check_bufferram(struct mtd_info *mtd, loff_t addr)
struct
onenand_chip
*
this
=
mtd
->
priv
;
int
block
,
page
;
int
i
;
block
=
(
int
)
(
addr
>>
this
->
erase_shift
);
page
=
(
int
)
(
addr
>>
this
->
page_shift
);
page
&=
this
->
page_mask
;
...
...
@@ -472,7 +472,7 @@ static int onenand_update_bufferram(struct mtd_info *mtd, loff_t addr,
struct
onenand_chip
*
this
=
mtd
->
priv
;
int
block
,
page
;
int
i
;
block
=
(
int
)
(
addr
>>
this
->
erase_shift
);
page
=
(
int
)
(
addr
>>
this
->
page_shift
);
page
&=
this
->
page_mask
;
...
...
@@ -743,7 +743,7 @@ static int onenand_verify_page(struct mtd_info *mtd, u_char *buf, loff_t addr)
if
(
memcmp
(
dataram0
,
dataram1
,
mtd
->
oobblock
))
return
-
EBADMSG
;
return
0
;
}
#else
...
...
@@ -832,7 +832,7 @@ static int onenand_write_ecc(struct mtd_info *mtd, loff_t to, size_t len,
onenand_release_device
(
mtd
);
*
retlen
=
written
;
return
ret
;
}
...
...
@@ -917,7 +917,7 @@ static int onenand_write_oob(struct mtd_info *mtd, loff_t to, size_t len,
onenand_release_device
(
mtd
);
*
retlen
=
written
;
return
0
;
}
...
...
@@ -969,12 +969,12 @@ static int onenand_writev_ecc(struct mtd_info *mtd, const struct kvec *vecs,
onenand_get_device
(
mtd
,
FL_WRITING
);
/* TODO handling oob */
/* Loop until all keve's data has been written */
len
=
0
;
while
(
count
)
{
pbuf
=
buffer
;
/*
/*
* If the given tuple is >= pagesize then
* write it out from the iov
*/
...
...
@@ -1316,7 +1316,7 @@ static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
if
(
!
(
status
&
ONENAND_WP_US
))
printk
(
KERN_ERR
"block = %d, wp status = 0x%x
\n
"
,
block
,
status
);
}
return
0
;
}
...
...
@@ -1439,7 +1439,7 @@ static int onenand_probe(struct mtd_info *mtd)
printk
(
KERN_INFO
"Lock scheme is Continues Lock
\n
"
);
this
->
options
|=
ONENAND_CONT_LOCK
;
}
return
0
;
}
...
...
@@ -1533,7 +1533,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
}
memcpy
(
&
mtd
->
oobinfo
,
this
->
autooob
,
sizeof
(
mtd
->
oobinfo
));
/* Fill in remaining MTD driver data */
mtd
->
type
=
MTD_NANDFLASH
;
mtd
->
flags
=
MTD_CAP_NANDFLASH
|
MTD_ECC
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录