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
02c71055
Commit
02c71055
authored
Jul 05, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB: tm6000-input: Make checkpatch.pl happy
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
d064f960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
drivers/staging/tm6000/tm6000-input.c
drivers/staging/tm6000/tm6000-input.c
+8
-8
No files found.
drivers/staging/tm6000/tm6000-input.c
View file @
02c71055
...
@@ -40,7 +40,7 @@ MODULE_PARM_DESC(enable_ir, "enable ir (default is enable");
...
@@ -40,7 +40,7 @@ MODULE_PARM_DESC(enable_ir, "enable ir (default is enable");
#undef dprintk
#undef dprintk
#define dprintk(fmt, arg...
) \
#define dprintk(fmt, arg...) \
if (ir_debug) { \
if (ir_debug) { \
printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \
printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \
}
}
...
@@ -119,13 +119,13 @@ static void tm6000_ir_urb_received(struct urb *urb)
...
@@ -119,13 +119,13 @@ static void tm6000_ir_urb_received(struct urb *urb)
struct
tm6000_core
*
dev
=
urb
->
context
;
struct
tm6000_core
*
dev
=
urb
->
context
;
struct
tm6000_IR
*
ir
=
dev
->
ir
;
struct
tm6000_IR
*
ir
=
dev
->
ir
;
int
rc
;
int
rc
;
if
(
urb
->
status
!=
0
)
if
(
urb
->
status
!=
0
)
printk
(
KERN_INFO
"not ready
\n
"
);
printk
(
KERN_INFO
"not ready
\n
"
);
else
if
(
urb
->
actual_length
>
0
)
else
if
(
urb
->
actual_length
>
0
)
memcpy
(
ir
->
urb_data
,
urb
->
transfer_buffer
,
urb
->
actual_length
);
memcpy
(
ir
->
urb_data
,
urb
->
transfer_buffer
,
urb
->
actual_length
);
dprintk
(
"data %02x %02x %02x %02x
\n
"
,
ir
->
urb_data
[
0
],
dprintk
(
"data %02x %02x %02x %02x
\n
"
,
ir
->
urb_data
[
0
],
ir
->
urb_data
[
1
],
ir
->
urb_data
[
2
],
ir
->
urb_data
[
3
]);
ir
->
urb_data
[
1
],
ir
->
urb_data
[
2
],
ir
->
urb_data
[
3
]);
ir
->
key
=
1
;
ir
->
key
=
1
;
...
@@ -140,7 +140,7 @@ static int default_polling_getkey(struct tm6000_IR *ir,
...
@@ -140,7 +140,7 @@ static int default_polling_getkey(struct tm6000_IR *ir,
int
rc
;
int
rc
;
u8
buf
[
2
];
u8
buf
[
2
];
if
(
ir
->
wait
&&
!&
dev
->
int_in
)
{
if
(
ir
->
wait
&&
!&
dev
->
int_in
)
{
poll_result
->
rc_data
[
0
]
=
0xff
;
poll_result
->
rc_data
[
0
]
=
0xff
;
return
0
;
return
0
;
}
}
...
@@ -159,10 +159,10 @@ static int default_polling_getkey(struct tm6000_IR *ir,
...
@@ -159,10 +159,10 @@ static int default_polling_getkey(struct tm6000_IR *ir,
msleep
(
10
);
msleep
(
10
);
dprintk
(
"read data=%02x
\n
"
,
buf
[
0
]);
dprintk
(
"read data=%02x
\n
"
,
buf
[
0
]);
if
(
rc
<
0
)
{
if
(
rc
<
0
)
return
rc
;
return
rc
;
}
poll_result
->
rc_data
[
0
]
=
buf
[
0
];
poll_result
->
rc_data
[
0
]
=
buf
[
0
];
}
}
return
0
;
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