Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
d5c5e78a
Commit
d5c5e78a
authored
Nov 07, 2005
by
Thomas Gleixner
Committed by
Thomas Gleixner
Nov 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] OneNAND: Clean up trailing white spaces
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
61b03bd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
drivers/mtd/onenand/onenand_base.c
drivers/mtd/onenand/onenand_base.c
+12
-12
No files found.
drivers/mtd/onenand/onenand_base.c
View file @
d5c5e78a
...
@@ -255,7 +255,7 @@ static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t le
...
@@ -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 */
/* Write 'BSA, BSC' of DataRAM */
value
=
onenand_buffer_address
(
dataram
,
sectors
,
count
);
value
=
onenand_buffer_address
(
dataram
,
sectors
,
count
);
this
->
write_word
(
value
,
this
->
base
+
ONENAND_REG_START_BUFFER
);
this
->
write_word
(
value
,
this
->
base
+
ONENAND_REG_START_BUFFER
);
if
(
readcmd
)
{
if
(
readcmd
)
{
/* Select DataRAM for DDP */
/* Select DataRAM for DDP */
value
=
onenand_bufferram_address
(
this
,
block
);
value
=
onenand_bufferram_address
(
this
,
block
);
...
@@ -433,7 +433,7 @@ static int onenand_write_bufferram(struct mtd_info *mtd, int area,
...
@@ -433,7 +433,7 @@ static int onenand_write_bufferram(struct mtd_info *mtd, int area,
* onenand_check_bufferram - [GENERIC] Check BufferRAM information
* onenand_check_bufferram - [GENERIC] Check BufferRAM information
* @param mtd MTD data structure
* @param mtd MTD data structure
* @param addr address to check
* @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
* Check bufferram if there is data we required
*/
*/
...
@@ -442,7 +442,7 @@ static int onenand_check_bufferram(struct mtd_info *mtd, loff_t addr)
...
@@ -442,7 +442,7 @@ static int onenand_check_bufferram(struct mtd_info *mtd, loff_t addr)
struct
onenand_chip
*
this
=
mtd
->
priv
;
struct
onenand_chip
*
this
=
mtd
->
priv
;
int
block
,
page
;
int
block
,
page
;
int
i
;
int
i
;
block
=
(
int
)
(
addr
>>
this
->
erase_shift
);
block
=
(
int
)
(
addr
>>
this
->
erase_shift
);
page
=
(
int
)
(
addr
>>
this
->
page_shift
);
page
=
(
int
)
(
addr
>>
this
->
page_shift
);
page
&=
this
->
page_mask
;
page
&=
this
->
page_mask
;
...
@@ -472,7 +472,7 @@ static int onenand_update_bufferram(struct mtd_info *mtd, loff_t addr,
...
@@ -472,7 +472,7 @@ static int onenand_update_bufferram(struct mtd_info *mtd, loff_t addr,
struct
onenand_chip
*
this
=
mtd
->
priv
;
struct
onenand_chip
*
this
=
mtd
->
priv
;
int
block
,
page
;
int
block
,
page
;
int
i
;
int
i
;
block
=
(
int
)
(
addr
>>
this
->
erase_shift
);
block
=
(
int
)
(
addr
>>
this
->
erase_shift
);
page
=
(
int
)
(
addr
>>
this
->
page_shift
);
page
=
(
int
)
(
addr
>>
this
->
page_shift
);
page
&=
this
->
page_mask
;
page
&=
this
->
page_mask
;
...
@@ -743,7 +743,7 @@ static int onenand_verify_page(struct mtd_info *mtd, u_char *buf, loff_t addr)
...
@@ -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
))
if
(
memcmp
(
dataram0
,
dataram1
,
mtd
->
oobblock
))
return
-
EBADMSG
;
return
-
EBADMSG
;
return
0
;
return
0
;
}
}
#else
#else
...
@@ -832,7 +832,7 @@ out:
...
@@ -832,7 +832,7 @@ out:
onenand_release_device
(
mtd
);
onenand_release_device
(
mtd
);
*
retlen
=
written
;
*
retlen
=
written
;
return
ret
;
return
ret
;
}
}
...
@@ -917,7 +917,7 @@ out:
...
@@ -917,7 +917,7 @@ out:
onenand_release_device
(
mtd
);
onenand_release_device
(
mtd
);
*
retlen
=
written
;
*
retlen
=
written
;
return
0
;
return
0
;
}
}
...
@@ -969,12 +969,12 @@ static int onenand_writev_ecc(struct mtd_info *mtd, const struct kvec *vecs,
...
@@ -969,12 +969,12 @@ static int onenand_writev_ecc(struct mtd_info *mtd, const struct kvec *vecs,
onenand_get_device
(
mtd
,
FL_WRITING
);
onenand_get_device
(
mtd
,
FL_WRITING
);
/* TODO handling oob */
/* TODO handling oob */
/* Loop until all keve's data has been written */
/* Loop until all keve's data has been written */
len
=
0
;
len
=
0
;
while
(
count
)
{
while
(
count
)
{
pbuf
=
buffer
;
pbuf
=
buffer
;
/*
/*
* If the given tuple is >= pagesize then
* If the given tuple is >= pagesize then
* write it out from the iov
* write it out from the iov
*/
*/
...
@@ -1316,7 +1316,7 @@ static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
...
@@ -1316,7 +1316,7 @@ static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
if
(
!
(
status
&
ONENAND_WP_US
))
if
(
!
(
status
&
ONENAND_WP_US
))
printk
(
KERN_ERR
"block = %d, wp status = 0x%x
\n
"
,
block
,
status
);
printk
(
KERN_ERR
"block = %d, wp status = 0x%x
\n
"
,
block
,
status
);
}
}
return
0
;
return
0
;
}
}
...
@@ -1439,7 +1439,7 @@ static int onenand_probe(struct mtd_info *mtd)
...
@@ -1439,7 +1439,7 @@ static int onenand_probe(struct mtd_info *mtd)
printk
(
KERN_INFO
"Lock scheme is Continues Lock
\n
"
);
printk
(
KERN_INFO
"Lock scheme is Continues Lock
\n
"
);
this
->
options
|=
ONENAND_CONT_LOCK
;
this
->
options
|=
ONENAND_CONT_LOCK
;
}
}
return
0
;
return
0
;
}
}
...
@@ -1533,7 +1533,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
...
@@ -1533,7 +1533,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
}
}
memcpy
(
&
mtd
->
oobinfo
,
this
->
autooob
,
sizeof
(
mtd
->
oobinfo
));
memcpy
(
&
mtd
->
oobinfo
,
this
->
autooob
,
sizeof
(
mtd
->
oobinfo
));
/* Fill in remaining MTD driver data */
/* Fill in remaining MTD driver data */
mtd
->
type
=
MTD_NANDFLASH
;
mtd
->
type
=
MTD_NANDFLASH
;
mtd
->
flags
=
MTD_CAP_NANDFLASH
|
MTD_ECC
;
mtd
->
flags
=
MTD_CAP_NANDFLASH
|
MTD_ECC
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment