Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple VME FMC Carrier SVEC - Software
Commits
81136a2e
Commit
81136a2e
authored
Dec 17, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/svec-sysfs: white space fixes (no change)
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
27208406
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
svec-sysfs.c
kernel/svec-sysfs.c
+23
-23
No files found.
kernel/svec-sysfs.c
View file @
81136a2e
...
...
@@ -13,7 +13,7 @@
#include "svec.h"
static
ssize_t
svec_show_bootloader_active
(
struct
device
*
pdev
,
struct
device_attribute
*
attr
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
struct
svec_dev
*
card
=
dev_get_drvdata
(
pdev
);
...
...
@@ -21,18 +21,18 @@ static ssize_t svec_show_bootloader_active(struct device *pdev,
int
active
;
active
=
svec_bootloader_is_active
(
card
);
if
(
active
<
0
)
if
(
active
<
0
)
return
-
EINVAL
;
ret
=
snprintf
(
buf
,
PAGE_SIZE
,
"%d
\n
"
,
active
);
return
ret
;
}
static
ssize_t
svec_store_bootloader_active
(
struct
device
*
pdev
,
static
ssize_t
svec_store_bootloader_active
(
struct
device
*
pdev
,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
size_t
count
)
{
struct
svec_dev
*
card
=
dev_get_drvdata
(
pdev
);
...
...
@@ -41,7 +41,7 @@ static ssize_t svec_store_bootloader_active(struct device *pdev,
return
count
;
}
static
ssize_t
svec_show_firmware_name
(
struct
device
*
pdev
,
static
ssize_t
svec_show_firmware_name
(
struct
device
*
pdev
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
...
...
@@ -50,7 +50,7 @@ static ssize_t svec_show_firmware_name(struct device *pdev,
int
bl_active
;
bl_active
=
svec_bootloader_is_active
(
card
);
if
(
bl_active
<
0
)
if
(
bl_active
<
0
)
return
-
EINVAL
;
if
(
bl_active
)
...
...
@@ -61,7 +61,7 @@ static ssize_t svec_show_firmware_name(struct device *pdev,
return
ret
;
}
static
ssize_t
svec_store_firmware_name
(
struct
device
*
pdev
,
static
ssize_t
svec_store_firmware_name
(
struct
device
*
pdev
,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
...
...
@@ -74,13 +74,13 @@ static ssize_t svec_store_firmware_name(struct device *pdev,
error
=
svec_load_fpga_file
(
card
,
buf
);
if
(
!
error
)
snprintf
(
card
->
fw_name
,
PAGE_SIZE
,
"%s"
,
buf
);
snprintf
(
card
->
fw_name
,
PAGE_SIZE
,
"%s"
,
buf
);
return
count
;
}
static
ssize_t
svec_show_interrupt_vector
(
struct
device
*
pdev
,
static
ssize_t
svec_show_interrupt_vector
(
struct
device
*
pdev
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
...
...
@@ -89,7 +89,7 @@ static ssize_t svec_show_interrupt_vector(struct device *pdev,
return
snprintf
(
buf
,
PAGE_SIZE
,
"0x%x
\n
"
,
card
->
vector
);
}
static
ssize_t
svec_show_interrupt_level
(
struct
device
*
pdev
,
static
ssize_t
svec_show_interrupt_level
(
struct
device
*
pdev
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
...
...
@@ -100,22 +100,22 @@ static ssize_t svec_show_interrupt_level(struct device *pdev,
/********************** SVEC board attributes ***********************/
static
DEVICE_ATTR
(
bootloader_active
,
S_IWUSR
|
S_IRUGO
,
svec_show_bootloader_active
,
static
DEVICE_ATTR
(
bootloader_active
,
S_IWUSR
|
S_IRUGO
,
svec_show_bootloader_active
,
svec_store_bootloader_active
);
static
DEVICE_ATTR
(
firmware_name
,
S_IWUSR
|
S_IRUGO
,
svec_show_firmware_name
,
static
DEVICE_ATTR
(
firmware_name
,
S_IWUSR
|
S_IRUGO
,
svec_show_firmware_name
,
svec_store_firmware_name
);
static
DEVICE_ATTR
(
interrupt_vector
,
S_IRUGO
,
svec_show_interrupt_vector
,
static
DEVICE_ATTR
(
interrupt_vector
,
S_IRUGO
,
svec_show_interrupt_vector
,
NULL
);
static
DEVICE_ATTR
(
interrupt_level
,
S_IRUGO
,
svec_show_interrupt_level
,
static
DEVICE_ATTR
(
interrupt_level
,
S_IRUGO
,
svec_show_interrupt_level
,
NULL
);
static
struct
attribute
*
svec_attrs
[]
=
{
...
...
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