Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f6320bd3
Commit
f6320bd3
authored
May 22, 2006
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (3968a): Remove compatibility check for I2C_PEC
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
7923dee0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
drivers/media/video/em28xx/em28xx-i2c.c
drivers/media/video/em28xx/em28xx-i2c.c
+0
-16
drivers/media/video/tvmixer.c
drivers/media/video/tvmixer.c
+0
-8
No files found.
drivers/media/video/em28xx/em28xx-i2c.c
View file @
f6320bd3
...
...
@@ -399,17 +399,6 @@ static u32 functionality(struct i2c_adapter *adap)
return
I2C_FUNC_SMBUS_EMUL
;
}
#ifndef I2C_PEC
static
void
inc_use
(
struct
i2c_adapter
*
adap
)
{
MOD_INC_USE_COUNT
;
}
static
void
dec_use
(
struct
i2c_adapter
*
adap
)
{
MOD_DEC_USE_COUNT
;
}
#endif
static
int
em28xx_set_tuner
(
int
check_eeprom
,
struct
i2c_client
*
client
)
{
...
...
@@ -480,12 +469,7 @@ static struct i2c_algorithm em28xx_algo = {
};
static
struct
i2c_adapter
em28xx_adap_template
=
{
#ifdef I2C_PEC
.
owner
=
THIS_MODULE
,
#else
.
inc_use
=
inc_use
,
.
dec_use
=
dec_use
,
#endif
.
class
=
I2C_CLASS_TV_ANALOG
,
.
name
=
"em28xx"
,
.
id
=
I2C_HW_B_EM28XX
,
...
...
drivers/media/video/tvmixer.c
View file @
f6320bd3
...
...
@@ -198,10 +198,6 @@ static int tvmixer_open(struct inode *inode, struct file *file)
/* lock bttv in memory while the mixer is in use */
file
->
private_data
=
mix
;
#ifndef I2C_PEC
if
(
client
->
adapter
->
inc_use
)
client
->
adapter
->
inc_use
(
client
->
adapter
);
#endif
if
(
client
->
adapter
->
owner
)
try_module_get
(
client
->
adapter
->
owner
);
return
0
;
...
...
@@ -217,10 +213,6 @@ static int tvmixer_release(struct inode *inode, struct file *file)
return
-
ENODEV
;
}
#ifndef I2C_PEC
if
(
client
->
adapter
->
dec_use
)
client
->
adapter
->
dec_use
(
client
->
adapter
);
#endif
if
(
client
->
adapter
->
owner
)
module_put
(
client
->
adapter
->
owner
);
return
0
;
...
...
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