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
c7b2b2a7
Commit
c7b2b2a7
authored
Jun 21, 2005
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] w1: fix build issues
Signed-off-by:
Greg Kroah-Hartman
<
gregkh@suse.de
>
parent
ca775c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
drivers/w1/w1_smem.c
drivers/w1/w1_smem.c
+0
-16
No files found.
drivers/w1/w1_smem.c
View file @
c7b2b2a7
...
...
@@ -37,14 +37,11 @@ MODULE_AUTHOR("Evgeniy Polyakov <johnpol@2ka.mipt.ru>");
MODULE_DESCRIPTION
(
"Driver for 1-wire Dallas network protocol, 64bit memory family."
);
static
ssize_t
w1_smem_read_name
(
struct
device
*
,
struct
device_attribute
*
attr
,
char
*
);
static
ssize_t
w1_smem_read_val
(
struct
device
*
,
struct
device_attribute
*
attr
,
char
*
);
static
ssize_t
w1_smem_read_bin
(
struct
kobject
*
,
char
*
,
loff_t
,
size_t
);
static
struct
w1_family_ops
w1_smem_fops
=
{
.
rname
=
&
w1_smem_read_name
,
.
rbin
=
&
w1_smem_read_bin
,
.
rval
=
&
w1_smem_read_val
,
.
rvalname
=
"id"
,
};
static
ssize_t
w1_smem_read_name
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
char
*
buf
)
...
...
@@ -54,19 +51,6 @@ static ssize_t w1_smem_read_name(struct device *dev, struct device_attribute *at
return
sprintf
(
buf
,
"%s
\n
"
,
sl
->
name
);
}
static
ssize_t
w1_smem_read_val
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
struct
w1_slave
*
sl
=
container_of
(
dev
,
struct
w1_slave
,
dev
);
int
i
;
ssize_t
count
=
0
;
for
(
i
=
0
;
i
<
8
;
++
i
)
count
+=
sprintf
(
buf
+
count
,
"%02x "
,
((
u8
*
)
&
sl
->
reg_num
)[
i
]);
count
+=
sprintf
(
buf
+
count
,
"
\n
"
);
return
count
;
}
static
ssize_t
w1_smem_read_bin
(
struct
kobject
*
kobj
,
char
*
buf
,
loff_t
off
,
size_t
count
)
{
struct
w1_slave
*
sl
=
container_of
(
container_of
(
kobj
,
struct
device
,
kobj
),
...
...
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