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
48983900
Commit
48983900
authored
Mar 22, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c: fix up drivers/video/matrox/i2c-matroxfb.c due to previous i2c changes
parent
0c950d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
drivers/video/matrox/i2c-matroxfb.c
drivers/video/matrox/i2c-matroxfb.c
+6
-5
No files found.
drivers/video/matrox/i2c-matroxfb.c
View file @
48983900
...
...
@@ -111,7 +111,8 @@ static int i2c_bus_reg(struct i2c_bit_adapter* b, struct matrox_fb_info* minfo,
b
->
mask
.
data
=
data
;
b
->
mask
.
clock
=
clock
;
b
->
adapter
=
matrox_i2c_adapter_template
;
sprintf
(
b
->
adapter
.
name
,
name
,
minor
(
minfo
->
fbcon
.
node
));
snprintf
(
b
->
adapter
.
dev
.
name
,
DEVICE_NAME_SIZE
,
name
,
minor
(
minfo
->
fbcon
.
node
));
b
->
adapter
.
data
=
b
;
b
->
adapter
.
algo_data
=
&
b
->
bac
;
b
->
bac
=
matrox_i2c_algo_template
;
...
...
@@ -159,22 +160,22 @@ static void* i2c_matroxfb_probe(struct matrox_fb_info* minfo) {
switch
(
ACCESS_FBINFO
(
chip
))
{
case
MGA_2064
:
case
MGA_2164
:
err
=
i2c_bus_reg
(
&
m2info
->
ddc1
,
minfo
,
DDC1B_DATA
,
DDC1B_CLK
,
"DDC:fb%u #0
on i2c-matroxfb
"
);
err
=
i2c_bus_reg
(
&
m2info
->
ddc1
,
minfo
,
DDC1B_DATA
,
DDC1B_CLK
,
"DDC:fb%u #0"
);
break
;
default:
err
=
i2c_bus_reg
(
&
m2info
->
ddc1
,
minfo
,
DDC1_DATA
,
DDC1_CLK
,
"DDC:fb%u #0
on i2c-matroxfb
"
);
err
=
i2c_bus_reg
(
&
m2info
->
ddc1
,
minfo
,
DDC1_DATA
,
DDC1_CLK
,
"DDC:fb%u #0"
);
break
;
}
if
(
err
)
goto
fail_ddc1
;
if
(
ACCESS_FBINFO
(
devflags
.
dualhead
))
{
err
=
i2c_bus_reg
(
&
m2info
->
ddc2
,
minfo
,
DDC2_DATA
,
DDC2_CLK
,
"DDC:fb%u #1
on i2c-matroxfb
"
);
err
=
i2c_bus_reg
(
&
m2info
->
ddc2
,
minfo
,
DDC2_DATA
,
DDC2_CLK
,
"DDC:fb%u #1"
);
if
(
err
==
-
ENODEV
)
{
printk
(
KERN_INFO
"i2c-matroxfb: VGA->TV plug detected, DDC unavailable.
\n
"
);
}
else
if
(
err
)
printk
(
KERN_INFO
"i2c-matroxfb: Could not register secondary output i2c bus. Continuing anyway.
\n
"
);
/* Register maven bus even on G450/G550 */
err
=
i2c_bus_reg
(
&
m2info
->
maven
,
minfo
,
MAT_DATA
,
MAT_CLK
,
"MAVEN:fb%u
on i2c-matroxfb
"
);
err
=
i2c_bus_reg
(
&
m2info
->
maven
,
minfo
,
MAT_DATA
,
MAT_CLK
,
"MAVEN:fb%u"
);
if
(
err
)
printk
(
KERN_INFO
"i2c-matroxfb: Could not register Maven i2c bus. Continuing anyway.
\n
"
);
}
...
...
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