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
Kirill Smelkov
linux
Commits
74797797
Commit
74797797
authored
Jun 17, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eisa_eeprom: switch to fixed_size_llseek()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c0caa07b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
drivers/parisc/eisa_eeprom.c
drivers/parisc/eisa_eeprom.c
+2
-13
No files found.
drivers/parisc/eisa_eeprom.c
View file @
74797797
...
@@ -31,20 +31,9 @@
...
@@ -31,20 +31,9 @@
#define EISA_EEPROM_MINOR 241
#define EISA_EEPROM_MINOR 241
static
loff_t
eisa_eeprom_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
static
loff_t
eisa_eeprom_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
origin
)
{
{
switch
(
origin
)
{
return
fixed_size_llseek
(
file
,
offset
,
origin
,
HPEE_MAX_LENGTH
);
case
0
:
/* nothing to do */
break
;
case
1
:
offset
+=
file
->
f_pos
;
break
;
case
2
:
offset
+=
HPEE_MAX_LENGTH
;
break
;
}
return
(
offset
>=
0
&&
offset
<
HPEE_MAX_LENGTH
)
?
(
file
->
f_pos
=
offset
)
:
-
EINVAL
;
}
}
static
ssize_t
eisa_eeprom_read
(
struct
file
*
file
,
static
ssize_t
eisa_eeprom_read
(
struct
file
*
file
,
...
...
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