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
3d49700f
Commit
3d49700f
authored
Jul 21, 2011
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[media] mt2063: Rework on the publicly-exported functions
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
fad11dbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
32 deletions
+14
-32
drivers/media/common/tuners/mt2063.c
drivers/media/common/tuners/mt2063.c
+13
-31
drivers/media/common/tuners/mt2063.h
drivers/media/common/tuners/mt2063.h
+1
-1
No files found.
drivers/media/common/tuners/mt2063.c
View file @
3d49700f
...
...
@@ -320,53 +320,34 @@ static u32 MT2063_SoftwareShutdown(struct mt2063_state *state, u8 Shutdown);
static
u32
MT2063_ClearPowerMaskBits
(
struct
mt2063_state
*
state
,
enum
MT2063_Mask_Bits
Bits
);
/*****************/
/* From drivers/media/common/tuners/mt2063_cfg.h */
/*
* Ancillary routines visible outside mt2063
*/
unsigned
int
tuner_MT2063_SoftwareShutdown
(
struct
dvb_frontend
*
fe
)
{
struct
mt2063_state
*
state
=
fe
->
tuner_priv
;
struct
dvb_frontend_ops
*
frontend_ops
=
&
fe
->
ops
;
struct
dvb_tuner_ops
*
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
int
err
=
0
;
if
(
&
fe
->
ops
)
frontend_ops
=
&
fe
->
ops
;
if
(
&
frontend_ops
->
tuner_ops
)
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
if
(
tuner_ops
->
set_state
)
{
err
=
MT2063_SoftwareShutdown
(
state
,
1
);
if
(
err
<
0
)
{
printk
(
"%s: Invalid parameter
\n
"
,
__func__
);
return
err
;
}
}
err
=
MT2063_SoftwareShutdown
(
state
,
1
);
if
(
err
<
0
)
printk
(
KERN_ERR
"%s: Couldn't shutdown
\n
"
,
__func__
);
return
err
;
}
EXPORT_SYMBOL_GPL
(
tuner_MT2063_SoftwareShutdown
);
unsigned
int
tuner_MT2063_ClearPowerMaskBits
(
struct
dvb_frontend
*
fe
)
{
struct
mt2063_state
*
state
=
fe
->
tuner_priv
;
struct
dvb_frontend_ops
*
frontend_ops
=
&
fe
->
ops
;
struct
dvb_tuner_ops
*
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
int
err
=
0
;
if
(
&
fe
->
ops
)
frontend_ops
=
&
fe
->
ops
;
if
(
&
frontend_ops
->
tuner_ops
)
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
if
(
tuner_ops
->
set_state
)
{
err
=
MT2063_ClearPowerMaskBits
(
state
,
MT2063_ALL_SD
);
if
(
err
<
0
)
{
printk
(
"%s: Invalid parameter
\n
"
,
__func__
);
return
err
;
}
}
err
=
MT2063_ClearPowerMaskBits
(
state
,
MT2063_ALL_SD
);
if
(
err
<
0
)
printk
(
KERN_ERR
"%s: Invalid parameter
\n
"
,
__func__
);
return
err
;
}
EXPORT_SYMBOL_GPL
(
tuner_MT2063_ClearPowerMaskBits
);
/*
* mt2063_write - Write data into the I2C bus
...
...
@@ -1173,6 +1154,7 @@ unsigned int mt2063_lockStatus(struct mt2063_state *state)
*/
return
0
;
}
EXPORT_SYMBOL_GPL
(
mt2063_lockStatus
);
/****************************************************************************
**
...
...
@@ -3333,8 +3315,8 @@ struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
kfree
(
state
);
return
NULL
;
}
EXPORT_SYMBOL_GPL
(
mt2063_attach
);
EXPORT_SYMBOL
(
mt2063_attach
);
MODULE_PARM_DESC
(
verbose
,
"Set Verbosity level"
);
MODULE_AUTHOR
(
"Henry"
);
...
...
drivers/media/common/tuners/mt2063.h
View file @
3d49700f
...
...
@@ -27,8 +27,8 @@ unsigned int mt2063_setTune(struct dvb_frontend *fe, u32 f_in,
u32
bw_in
,
enum
MTTune_atv_standard
tv_type
);
/* FIXME: Should use the standard DVB attachment interfaces */
unsigned
int
mt2063_lockStatus
(
struct
dvb_frontend
*
fe
);
unsigned
int
tuner_MT2063_Open
(
struct
dvb_frontend
*
fe
);
unsigned
int
tuner_MT2063_SoftwareShutdown
(
struct
dvb_frontend
*
fe
);
unsigned
int
tuner_MT2063_ClearPowerMaskBits
(
struct
dvb_frontend
*
fe
);
...
...
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