Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
7fa4a38b
Commit
7fa4a38b
authored
Mar 16, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
otp write to predefined page offset
parent
729e2b13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
elphel393-init.c
src/drivers/elphel/elphel393-init.c
+1
-3
No files found.
src/drivers/elphel/elphel393-init.c
View file @
7fa4a38b
...
...
@@ -144,8 +144,6 @@ static int get_factory_info(void);
static
ssize_t
set_boardinfo
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
{
int
ret
;
loff_t
pos
=
0
;
//second page
loff_t
*
ppos
=&
pos
;
size_t
retlen
;
char
wbuf
[
2048
];
...
...
@@ -175,7 +173,7 @@ static ssize_t set_boardinfo(struct device *dev, struct device_attribute *attr,
//copy to buf
strncpy
(
wbuf
,
buf
,
strlen
(
buf
));
pr_info
(
"BUFFER: %s
\n
"
,
wbuf
);
ret
=
mtd_write_user_prot_reg
(
mtd
,
*
ppos
+
4
*
2048
,
2048
,
&
retlen
,
wbuf
);
ret
=
mtd_write_user_prot_reg
(
mtd
,
4
*
2048
,
2048
,
&
retlen
,
wbuf
);
if
(
ret
){
pr_err
(
"Flash page write, code %d"
,
ret
);
return
ret
;
...
...
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