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
95b47855
Commit
95b47855
authored
Jul 31, 2003
by
Michael Hunold
Committed by
Linus Torvalds
Jul 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] mt312 DVB frontend update
[DVB] - show i2c read errors only for registered frontends
parent
10778f7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
drivers/media/dvb/frontends/mt312.c
drivers/media/dvb/frontends/mt312.c
+14
-3
No files found.
drivers/media/dvb/frontends/mt312.c
View file @
95b47855
...
...
@@ -41,6 +41,9 @@
#define MT312_SYS_CLK 90000000UL
/* 90 MHz */
#define MT312_PLL_CLK 10000000UL
/* 10 MHz */
/* number of active frontends */
static
int
mt312_count
=
0
;
static
struct
dvb_frontend_info
mt312_info
=
{
.
name
=
"Zarlink MT312"
,
.
type
=
FE_QPSK
,
...
...
@@ -78,7 +81,7 @@ static int mt312_read(struct dvb_i2c_bus *i2c,
ret
=
i2c
->
xfer
(
i2c
,
msg
,
2
);
if
(
ret
!=
2
)
{
if
(
(
ret
!=
2
)
&&
(
mt312_count
!=
0
)
)
{
printk
(
KERN_ERR
"%s: ret == %d
\n
"
,
__FUNCTION__
,
ret
);
return
-
EREMOTEIO
;
}
...
...
@@ -722,13 +725,21 @@ static int mt312_attach(struct dvb_i2c_bus *i2c)
if
((
id
!=
ID_VP310
)
&&
(
id
!=
ID_MT312
))
return
-
ENODEV
;
return
dvb_register_frontend
(
mt312_ioctl
,
i2c
,
(
void
*
)
(
long
)
id
,
&
mt312_info
);
if
((
ret
=
dvb_register_frontend
(
mt312_ioctl
,
i2c
,
(
void
*
)(
long
)
id
,
&
mt312_info
))
<
0
)
return
ret
;
mt312_count
++
;
return
0
;
}
static
void
mt312_detach
(
struct
dvb_i2c_bus
*
i2c
)
{
dvb_unregister_frontend
(
mt312_ioctl
,
i2c
);
if
(
mt312_count
)
mt312_count
--
;
}
static
int
__init
mt312_module_init
(
void
)
...
...
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