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
978c26c3
Commit
978c26c3
authored
Jan 16, 2012
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[media] az6007: Use a per device private struct
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
781dacc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
drivers/media/dvb/dvb-usb/az6007.c
drivers/media/dvb/dvb-usb/az6007.c
+5
-6
No files found.
drivers/media/dvb/dvb-usb/az6007.c
View file @
978c26c3
...
...
@@ -82,7 +82,7 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
if
(
!
adap
)
return
-
EINVAL
;
st
=
adap
->
priv
;
st
=
adap
->
dev
->
priv
;
if
(
!
st
)
return
-
EINVAL
;
...
...
@@ -288,7 +288,7 @@ static int az6007_led_on_off(struct usb_interface *intf, int onoff)
static
int
az6007_frontend_attach
(
struct
dvb_usb_adapter
*
adap
)
{
struct
az6007_device_state
*
st
=
adap
->
priv
;
struct
az6007_device_state
*
st
=
adap
->
dev
->
priv
;
BUG_ON
(
!
st
);
...
...
@@ -311,7 +311,7 @@ static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
static
int
az6007_tuner_attach
(
struct
dvb_usb_adapter
*
adap
)
{
struct
az6007_device_state
*
st
=
adap
->
priv
;
struct
az6007_device_state
*
st
=
adap
->
dev
->
priv
;
if
(
st
->
tuner_attached
)
return
0
;
...
...
@@ -516,8 +516,8 @@ static struct dvb_usb_device_properties az6007_properties = {
.
usb_ctrl
=
CYPRESS_FX2
,
.
firmware
=
"dvb-usb-terratec-h7-az6007.fw"
,
.
no_reconnect
=
1
,
.
identify_state
=
az6007_identify_state
,
.
size_of_priv
=
sizeof
(
struct
az6007_device_state
),
.
identify_state
=
az6007_identify_state
,
.
num_adapters
=
1
,
.
adapter
=
{
{
...
...
@@ -538,7 +538,6 @@ static struct dvb_usb_device_properties az6007_properties = {
}
}
},
.
size_of_priv
=
sizeof
(
struct
az6007_device_state
),
}}
}
},
.
power_ctrl
=
az6007_power_ctrl
,
...
...
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