Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
4f02f822
Commit
4f02f822
authored
May 01, 2008
by
Mark M. Hoffman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'smsc47b397-new-id' into release
parents
18524486
80930776
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
drivers/hwmon/smsc47b397.c
drivers/hwmon/smsc47b397.c
+14
-3
No files found.
drivers/hwmon/smsc47b397.c
View file @
4f02f822
...
...
@@ -335,11 +335,23 @@ exit:
static
int
__init
smsc47b397_find
(
unsigned
short
*
addr
)
{
u8
id
,
rev
;
char
*
name
;
superio_enter
();
id
=
force_id
?
force_id
:
superio_inb
(
SUPERIO_REG_DEVID
);
if
((
id
!=
0x6f
)
&&
(
id
!=
0x81
)
&&
(
id
!=
0x85
))
{
switch
(
id
)
{
case
0x81
:
name
=
"SCH5307-NS"
;
break
;
case
0x6f
:
name
=
"LPC47B397-NC"
;
break
;
case
0x85
:
case
0x8c
:
name
=
"SCH5317"
;
break
;
default:
superio_exit
();
return
-
ENODEV
;
}
...
...
@@ -352,8 +364,7 @@ static int __init smsc47b397_find(unsigned short *addr)
printk
(
KERN_INFO
DRVNAME
": found SMSC %s "
"(base address 0x%04x, revision %u)
\n
"
,
id
==
0x81
?
"SCH5307-NS"
:
id
==
0x85
?
"SCH5317"
:
"LPC47B397-NC"
,
*
addr
,
rev
);
name
,
*
addr
,
rev
);
superio_exit
();
return
0
;
...
...
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