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
b3b18832
Commit
b3b18832
authored
Dec 30, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed typo-bug: set circbuf sizes instead of raw buffers
parent
5f6a6189
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
elphel393-mem.c
src/drivers/elphel/elphel393-mem.c
+4
-4
No files found.
src/drivers/elphel/elphel393-mem.c
View file @
b3b18832
...
@@ -478,7 +478,7 @@ static ssize_t set_size_raw_chn0(struct device *dev, struct device_attribute *at
...
@@ -478,7 +478,7 @@ static ssize_t set_size_raw_chn0(struct device *dev, struct device_attribute *at
{
{
u32
val
;
u32
val
;
if
(
sscanf
(
buf
,
"%u"
,
&
val
)
>
0
){
if
(
sscanf
(
buf
,
"%u"
,
&
val
)
>
0
){
_elphel_buf
.
circbuf
_chn0_size
=
val
;
_elphel_buf
.
raw
_chn0_size
=
val
;
elphelmem_update_partitions
();
elphelmem_update_partitions
();
}
}
return
count
;
return
count
;
...
@@ -498,7 +498,7 @@ static ssize_t set_size_raw_chn1(struct device *dev, struct device_attribute *at
...
@@ -498,7 +498,7 @@ static ssize_t set_size_raw_chn1(struct device *dev, struct device_attribute *at
{
{
u32
val
;
u32
val
;
if
(
sscanf
(
buf
,
"%u"
,
&
val
)
>
0
){
if
(
sscanf
(
buf
,
"%u"
,
&
val
)
>
0
){
_elphel_buf
.
circbuf
_chn1_size
=
val
;
_elphel_buf
.
raw
_chn1_size
=
val
;
elphelmem_update_partitions
();
elphelmem_update_partitions
();
}
}
return
count
;
return
count
;
...
@@ -518,7 +518,7 @@ static ssize_t set_size_raw_chn2(struct device *dev, struct device_attribute *at
...
@@ -518,7 +518,7 @@ static ssize_t set_size_raw_chn2(struct device *dev, struct device_attribute *at
{
{
u32
val
;
u32
val
;
if
(
sscanf
(
buf
,
"%u"
,
&
val
)
>
0
){
if
(
sscanf
(
buf
,
"%u"
,
&
val
)
>
0
){
_elphel_buf
.
circbuf
_chn2_size
=
val
;
_elphel_buf
.
raw
_chn2_size
=
val
;
elphelmem_update_partitions
();
elphelmem_update_partitions
();
}
}
return
count
;
return
count
;
...
@@ -538,7 +538,7 @@ static ssize_t set_size_raw_chn3(struct device *dev, struct device_attribute *at
...
@@ -538,7 +538,7 @@ static ssize_t set_size_raw_chn3(struct device *dev, struct device_attribute *at
{
{
u32
val
;
u32
val
;
if
(
sscanf
(
buf
,
"%u"
,
&
val
)
>
0
){
if
(
sscanf
(
buf
,
"%u"
,
&
val
)
>
0
){
_elphel_buf
.
circbuf
_chn3_size
=
val
;
_elphel_buf
.
raw
_chn3_size
=
val
;
elphelmem_update_partitions
();
elphelmem_update_partitions
();
}
}
return
count
;
return
count
;
...
...
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