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
27d68ab0
Commit
27d68ab0
authored
Aug 27, 2003
by
Hirofumi Ogawa
Committed by
Greg Kroah-Hartman
Aug 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] DEVICE_NAME_SIZE/_HALF removal (I2C related, but v4l stuff)
parent
d364ab90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/media/video/msp3400.c
drivers/media/video/msp3400.c
+1
-1
drivers/media/video/saa5249.c
drivers/media/video/saa5249.c
+1
-1
drivers/media/video/tuner.c
drivers/media/video/tuner.c
+2
-2
No files found.
drivers/media/video/msp3400.c
View file @
27d68ab0
...
...
@@ -1316,7 +1316,7 @@ static int msp_attach(struct i2c_adapter *adap, int addr, int kind)
#endif
msp3400c_setvolume
(
c
,
msp
->
muted
,
msp
->
left
,
msp
->
right
);
snprintf
(
c
->
name
,
DEVICE
_NAME_SIZE
,
"MSP34%02d%c-%c%d"
,
snprintf
(
c
->
name
,
I2C
_NAME_SIZE
,
"MSP34%02d%c-%c%d"
,
(
msp
->
rev2
>>
8
)
&
0xff
,
(
msp
->
rev1
&
0xff
)
+
'@'
,
((
msp
->
rev1
>>
8
)
&
0xff
)
+
'@'
,
msp
->
rev2
&
0x1f
);
...
...
drivers/media/video/saa5249.c
View file @
27d68ab0
...
...
@@ -171,7 +171,7 @@ static int saa5249_attach(struct i2c_adapter *adap, int addr, int kind)
return
-
ENOMEM
;
}
memset
(
t
,
0
,
sizeof
(
*
t
));
strlcpy
(
client
->
name
,
IF_NAME
,
DEVICE
_NAME_SIZE
);
strlcpy
(
client
->
name
,
IF_NAME
,
I2C
_NAME_SIZE
);
init_MUTEX
(
&
t
->
lock
);
/*
...
...
drivers/media/video/tuner.c
View file @
27d68ab0
...
...
@@ -824,7 +824,7 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
if
(
type
<
TUNERS
)
{
t
->
type
=
type
;
printk
(
"tuner(bttv): type forced to %d (%s) [insmod]
\n
"
,
t
->
type
,
tuners
[
t
->
type
].
name
);
strlcpy
(
client
->
name
,
tuners
[
t
->
type
].
name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
client
->
name
,
tuners
[
t
->
type
].
name
,
I2C
_NAME_SIZE
);
}
i2c_attach_client
(
client
);
if
(
t
->
type
==
TUNER_MT2032
)
...
...
@@ -875,7 +875,7 @@ tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
t
->
type
=
*
iarg
;
printk
(
"tuner: type set to %d (%s)
\n
"
,
t
->
type
,
tuners
[
t
->
type
].
name
);
strlcpy
(
client
->
name
,
tuners
[
t
->
type
].
name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
client
->
name
,
tuners
[
t
->
type
].
name
,
I2C
_NAME_SIZE
);
if
(
t
->
type
==
TUNER_MT2032
)
mt2032_init
(
client
);
break
;
...
...
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