Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
658bf027
Commit
658bf027
authored
Jan 13, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sysfs: fixup some remaining s390 files.
From Arnd Bergmann.
parent
3750eee7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
18 deletions
+10
-18
drivers/s390/cio/chsc.c
drivers/s390/cio/chsc.c
+4
-4
drivers/s390/net/ctcmain.c
drivers/s390/net/ctcmain.c
+3
-7
drivers/s390/net/cu3088.c
drivers/s390/net/cu3088.c
+1
-5
drivers/s390/net/netiucv.c
drivers/s390/net/netiucv.c
+2
-2
No files found.
drivers/s390/cio/chsc.c
View file @
658bf027
...
...
@@ -616,13 +616,13 @@ chp_status_show(struct device *dev, char *buf)
switch
(
chp
->
state
)
{
case
CHP_OFFLINE
:
return
s
nprintf
(
buf
,
count
,
"n/a
\n
"
);
return
s
printf
(
buf
,
"n/a
\n
"
);
case
CHP_LOGICALLY_OFFLINE
:
return
s
nprintf
(
buf
,
count
,
"logically offline
\n
"
);
return
s
printf
(
buf
,
"logically offline
\n
"
);
case
CHP_STANDBY
:
return
s
nprintf
(
buf
,
count
,
"n/a
\n
"
);
return
s
printf
(
buf
,
"n/a
\n
"
);
case
CHP_ONLINE
:
return
s
nprintf
(
buf
,
count
,
"online
\n
"
);
return
s
printf
(
buf
,
"online
\n
"
);
default:
return
0
;
}
...
...
drivers/s390/net/ctcmain.c
View file @
658bf027
...
...
@@ -2762,27 +2762,23 @@ ctc_init_netdevice(struct net_device * dev, int alloc_device,
}
static
ssize_t
ctc_proto_show
(
struct
device
*
dev
,
char
*
buf
,
size_t
count
,
loff_t
off
)
ctc_proto_show
(
struct
device
*
dev
,
char
*
buf
)
{
struct
ctc_priv
*
priv
;
if
(
off
)
return
0
;
priv
=
dev
->
driver_data
;
if
(
!
priv
)
return
-
ENODEV
;
return
s
nprintf
(
buf
,
count
,
"%d
\n
"
,
priv
->
protocol
);
return
s
printf
(
buf
,
"%d
\n
"
,
priv
->
protocol
);
}
static
ssize_t
ctc_proto_store
(
struct
device
*
dev
,
const
char
*
buf
,
size_t
count
,
loff_t
off
)
ctc_proto_store
(
struct
device
*
dev
,
const
char
*
buf
,
size_t
count
)
{
struct
ctc_priv
*
priv
;
int
value
;
if
(
off
)
return
0
;
priv
=
dev
->
driver_data
;
if
(
!
priv
)
return
-
ENODEV
;
...
...
drivers/s390/net/cu3088.c
View file @
658bf027
...
...
@@ -63,8 +63,7 @@ struct device cu3088_root_dev = {
};
static
ssize_t
group_write
(
struct
device_driver
*
drv
,
const
char
*
buf
,
size_t
count
,
loff_t
off
)
group_write
(
struct
device_driver
*
drv
,
const
char
*
buf
,
size_t
count
)
{
const
char
*
start
,
*
end
;
char
bus_ids
[
2
][
BUS_ID_SIZE
],
*
argv
[
2
];
...
...
@@ -72,9 +71,6 @@ group_write(struct device_driver *drv, const char *buf, size_t count,
int
ret
;
struct
ccwgroup_driver
*
cdrv
;
if
(
off
)
return
0
;
cdrv
=
to_ccwgroupdrv
(
drv
);
if
(
!
cdrv
)
return
-
EINVAL
;
...
...
drivers/s390/net/netiucv.c
View file @
658bf027
...
...
@@ -1473,11 +1473,11 @@ txtime_show (struct device *dev, char *buf)
{
netiucv_priv
*
priv
=
dev
->
driver_data
;
return
s
nprintf
(
buf
,
count
,
"%ld
\n
"
,
priv
->
conn
->
prof
.
tx_time
);
return
s
printf
(
buf
,
"%ld
\n
"
,
priv
->
conn
->
prof
.
tx_time
);
}
static
ssize_t
txtime_write
(
struct
device
*
dev
,
const
char
*
buf
)
txtime_write
(
struct
device
*
dev
,
const
char
*
buf
,
size_t
count
)
{
netiucv_priv
*
priv
=
dev
->
driver_data
;
...
...
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