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
482371ff
Commit
482371ff
authored
Aug 14, 2002
by
Petr Vandrovec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove structure holding state of secondary output in the matroxfb driver.
We do not have any state stored here.
parent
ce31e58a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
22 deletions
+3
-22
drivers/video/matrox/matroxfb_g450.c
drivers/video/matrox/matroxfb_g450.c
+3
-17
drivers/video/matrox/matroxfb_g450.h
drivers/video/matrox/matroxfb_g450.h
+0
-5
No files found.
drivers/video/matrox/matroxfb_g450.c
View file @
482371ff
...
...
@@ -20,20 +20,16 @@
#include <asm/uaccess.h>
static
int
matroxfb_g450_compute
(
void
*
md
,
struct
my_timming
*
mt
)
{
#define m2info ((struct matroxfb_g450_info*)md)
#define minfo (m2info->primary_dev)
#define minfo ((struct matrox_fb_info*)md)
ACCESS_FBINFO
(
hw
).
vidclk
=
mt
->
pixclock
;
#undef minfo
#undef m2info
return
0
;
}
static
int
matroxfb_g450_program
(
void
*
md
)
{
#define m2info ((struct matroxfb_g450_info*)md)
#define minfo (m2info->primary_dev)
#define minfo ((struct matrox_fb_info*)md)
matroxfb_g450_setclk
(
PMINFO
ACCESS_FBINFO
(
hw
).
vidclk
,
M_VIDEO_PLL
);
#undef minfo
#undef m2info
return
0
;
}
...
...
@@ -72,20 +68,11 @@ static struct matrox_altout matroxfb_g450_altout = {
};
void
matroxfb_g450_connect
(
WPMINFO2
)
{
struct
matroxfb_g450_info
*
m2info
;
/* hardware is not G450... */
if
(
!
ACCESS_FBINFO
(
devflags
.
g450dac
))
return
;
m2info
=
(
struct
matroxfb_g450_info
*
)
kmalloc
(
sizeof
(
*
m2info
),
GFP_KERNEL
);
if
(
!
m2info
)
{
printk
(
KERN_ERR
"matroxfb_g450: Not enough memory for G450 DAC control structs
\n
"
);
return
;
}
memset
(
m2info
,
0
,
sizeof
(
*
m2info
));
down_write
(
&
ACCESS_FBINFO
(
altout
.
lock
));
m2info
->
primary_dev
=
MINFO
;
ACCESS_FBINFO
(
altout
.
device
)
=
m2info
;
ACCESS_FBINFO
(
altout
.
device
)
=
MINFO
;
ACCESS_FBINFO
(
altout
.
output
)
=
&
matroxfb_g450_altout
;
up_write
(
&
ACCESS_FBINFO
(
altout
.
lock
));
ACCESS_FBINFO
(
output
.
all
)
|=
MATROXFB_OUTPUT_CONN_SECONDARY
;
...
...
@@ -97,7 +84,6 @@ void matroxfb_g450_shutdown(WPMINFO2) {
ACCESS_FBINFO
(
output
.
ph
)
&=
~
MATROXFB_OUTPUT_CONN_SECONDARY
;
ACCESS_FBINFO
(
output
.
sh
)
&=
~
MATROXFB_OUTPUT_CONN_SECONDARY
;
down_write
(
&
ACCESS_FBINFO
(
altout
.
lock
));
kfree
(
ACCESS_FBINFO
(
altout
.
device
));
ACCESS_FBINFO
(
altout
.
device
)
=
NULL
;
ACCESS_FBINFO
(
altout
.
output
)
=
NULL
;
up_write
(
&
ACCESS_FBINFO
(
altout
.
lock
));
...
...
drivers/video/matrox/matroxfb_g450.h
View file @
482371ff
...
...
@@ -3,11 +3,6 @@
#include "matroxfb_base.h"
struct
matroxfb_g450_info
{
struct
matrox_fb_info
*
primary_dev
;
unsigned
int
timmings
;
};
#ifdef CONFIG_FB_MATROX_G450
void
matroxfb_g450_connect
(
WPMINFO2
);
void
matroxfb_g450_shutdown
(
WPMINFO2
);
...
...
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