GitHub/exynos8895/android_kernel_samsung_universal8895.git
12 years ago[media] DiBcom: correct warnings
Olivier Grenie [Fri, 5 Aug 2011 17:10:40 +0000 (14:10 -0300)]
[media] DiBcom: correct warnings

The intend of this patch is to correct some warnings given.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] dib7090: add the reference board TFE7090E
Olivier Grenie [Fri, 5 Aug 2011 16:49:33 +0000 (13:49 -0300)]
[media] dib7090: add the reference board TFE7090E

The intend of this patch is to add the support for the DiBcom reference
board TFE7090E.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] dib7000p/dib0090: update the driver
Olivier Grenie [Fri, 5 Aug 2011 13:39:15 +0000 (10:39 -0300)]
[media] dib7000p/dib0090: update the driver

This patch intends to update the dib7000p and dib0090 driver in order to
improve the performances.

Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr>
Signed-off-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] staging: as102: Add support for Sky Italia Digital Key based on the same...
Gianluca Gennari [Thu, 17 Nov 2011 15:35:05 +0000 (12:35 -0300)]
[media] staging: as102: Add support for Sky Italia Digital Key based on the same chip

Add support for the Sky Italia Digital Key, an USB dongle offered
by Sky Italia to its customers for use with their satellite set-top-boxes.
This is the "green led" model based on the Abilis as102 chip, while the
so called "blue led" model is based on the Avermedia A867 design.

Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Sylwester Nawrocki <snjw23@gmail.com>
Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] em28xx: Add Terratec Cinergy HTC Stick
Andreas Oberritter [Wed, 16 Nov 2011 14:06:50 +0000 (11:06 -0300)]
[media] em28xx: Add Terratec Cinergy HTC Stick

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: fix warnings: variable set but not used
Tomas Winkler [Wed, 9 Nov 2011 11:26:42 +0000 (08:26 -0300)]
[media] easycap: fix warnings: variable set but not used

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: drop usb_class_driver
Tomas Winkler [Wed, 9 Nov 2011 11:26:41 +0000 (08:26 -0300)]
[media] easycap: drop usb_class_driver

Drop usb_class_driver and collaterals as it is not used

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: add easycap prefix to global functions names
Tomas Winkler [Wed, 9 Nov 2011 11:26:40 +0000 (08:26 -0300)]
[media] easycap: add easycap prefix to global functions names

Add easycap prefix to global function to reduce
possibility of name collision.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: remove unused members of struct easycap
Tomas Winkler [Wed, 9 Nov 2011 11:26:39 +0000 (08:26 -0300)]
[media] easycap: remove unused members of struct easycap

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: easycap_usb_driver should be static to easycap_main.c
Tomas Winkler [Wed, 9 Nov 2011 11:26:38 +0000 (08:26 -0300)]
[media] easycap: easycap_usb_driver should be static to easycap_main.c

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: use usb_kill_urb wrapper functions
Tomas Winkler [Wed, 9 Nov 2011 11:26:37 +0000 (08:26 -0300)]
[media] easycap: use usb_kill_urb wrapper functions

1. kill_video_usb can be used in all places where video urbs are killed
and reduce code repetition

2. remove unnecessary check for easycap == NULL in the function
as it is always checked by the calling function

3. rename the function to easycap_video_kill_urb to reduce
possibility of name conflict

4. implement also easycap_audio_kill_urb

5. simplify freeing urbs

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: drop initializations to 0 in the probe functions
Tomas Winkler [Wed, 9 Nov 2011 11:26:36 +0000 (08:26 -0300)]
[media] easycap: drop initializations to 0 in the probe functions

peasycap was allocated using kzalloc so drop all
to zero initializations

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: streamline the code
Tomas Winkler [Wed, 9 Nov 2011 11:26:35 +0000 (08:26 -0300)]
[media] easycap: streamline the code

change statements of types
if (err)
return err
else
do something

and
if (ok)
do something
else
return err

into

if (err)
return err

do something

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: compress initialization tables
Tomas Winkler [Wed, 9 Nov 2011 11:26:34 +0000 (08:26 -0300)]
[media] easycap: compress initialization tables

1. saa and stk initialization tables are less then
256 entries
2. stk table can fit into u16 and saa into u8

size before
 text    data     bss     dec     hex filename
 105687    1072 1134800 1241559  12f1d7 easycap.ko

size after

 text    data     bss     dec     hex filename
 97919    1072 1134800 1233791  12d37f easycap.ko

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: remove linux/version.h include from easycap_ioctl.c
Tomas Winkler [Wed, 9 Nov 2011 11:26:33 +0000 (08:26 -0300)]
[media] easycap: remove linux/version.h include from easycap_ioctl.c

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] easycap: cleanup function usage
Tomas Winkler [Wed, 9 Nov 2011 11:26:32 +0000 (08:26 -0300)]
[media] easycap: cleanup function usage

1. Remove declarations of none global functions from easycap.h
and make them static in the c-files.
2. Reorder static functions to reduce number of forward declarations.
3. Remove unused functions.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821.h: Line up defines
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:56 +0000 (01:43 -0300)]
[media] cx25821.h: Line up defines

Line up constant defines to the same column.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video.c: Change line endings
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:55 +0000 (01:43 -0300)]
[media] cx25821-video.c: Change line endings

Change obscure line endings to less obscure ones. (improve readability)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video.c: Fix indent
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:54 +0000 (01:43 -0300)]
[media] cx25821-video.c: Fix indent

Fix indent of statements to improve readability.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video.c: Move operators
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:53 +0000 (01:43 -0300)]
[media] cx25821-video.c: Move operators

Move operator in complex expression to the end of the line to preserve
consistency.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video.c: Fix definitions
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:52 +0000 (01:43 -0300)]
[media] cx25821-video.c: Fix definitions

Change multiple definitions in one statement into multiple statements
with one definition per statement.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video.c: Fix assignment
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:51 +0000 (01:43 -0300)]
[media] cx25821-video.c: Fix assignment

Change double assignment in one statement into two assignment
statements.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video.c: Change spaces
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:50 +0000 (01:43 -0300)]
[media] cx25821-video.c: Change spaces

Change double spaces between lexemes into single spaces.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video.c: Delete empty line
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:49 +0000 (01:43 -0300)]
[media] cx25821-video.c: Delete empty line

Delete unnecessary empty line.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video-upstream.c: Change line endings
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:48 +0000 (01:43 -0300)]
[media] cx25821-video-upstream.c: Change line endings

Change obscure line endings to less obscure ones. (improve readability)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video-upstream.c: Fix indent
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:47 +0000 (01:43 -0300)]
[media] cx25821-video-upstream.c: Fix indent

Change indent of statements to use tabs and to improve readability.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video-upstream.c: Remove braces
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:46 +0000 (01:43 -0300)]
[media] cx25821-video-upstream.c: Remove braces

Delete curly braces around single if-else statements.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video-upstream-ch2.c: Change line endings
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:45 +0000 (01:43 -0300)]
[media] cx25821-video-upstream-ch2.c: Change line endings

Change obscure line endings to less obscure ones. (improve readability)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video-upstream-ch2.c: Remove braces
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:44 +0000 (01:43 -0300)]
[media] cx25821-video-upstream-ch2.c: Remove braces

Remove unnecessary curly braces around single if statement.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video-upsstream-ch2.c: Move operators
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:43 +0000 (01:43 -0300)]
[media] cx25821-video-upsstream-ch2.c: Move operators

Move operators in complex expressions to the end of the lines to
preserve consistency.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video-upstream-ch2.c: Fix indent
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:42 +0000 (01:43 -0300)]
[media] cx25821-video-upstream-ch2.c: Fix indent

Change indent of statements with (less than 8) spaces to indent with
tabs.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-video-upstream-ch2.c: Line up comments
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:41 +0000 (01:43 -0300)]
[media] cx25821-video-upstream-ch2.c: Line up comments

Line up comments to match indent of surrounding statements.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-medusa-video.c: Change line endings
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:40 +0000 (01:43 -0300)]
[media] cx25821-medusa-video.c: Change line endings

Change obscure line endings to less obscure ones. (improve readability)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-medusa-video.c: Move operators
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:39 +0000 (01:43 -0300)]
[media] cx25821-medusa-video.c: Move operators

Plase operators in complex expressions at the end of the lines to
preserve consistency.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-medusa-video.c: Fix comment
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:38 +0000 (01:43 -0300)]
[media] cx25821-medusa-video.c: Fix comment

Delete part of the comment that is not checked in code.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-medusa-reg.h: Line up defines
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:37 +0000 (01:43 -0300)]
[media] cx25821-medusa-reg.h: Line up defines

Line up constant defines to the same column. (also delete unnecessary
spaces in comments)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-medusa-defines.h: Line up defines
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:36 +0000 (01:43 -0300)]
[media] cx25821-medusa-defines.h: Line up defines

Line up constant defines to the same column.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-medusa-defines.h: Fix typo
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:35 +0000 (01:43 -0300)]
[media] cx25821-medusa-defines.h: Fix typo

Fix typo in comment in word 'decoder'.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-i2c.c: Change line endings
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:34 +0000 (01:43 -0300)]
[media] cx25821-i2c.c: Change line endings

Change obscure line endings to less obscure ones. (improve readability)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-core.c: Change line endings
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:33 +0000 (01:43 -0300)]
[media] cx25821-core.c: Change line endings

Change obscure line endings to less obscure ones. (improve readability)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-core.c: Fix indent
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:32 +0000 (01:43 -0300)]
[media] cx25821-core.c: Fix indent

Change indent of statements that indented with spaces to indent with
tabs.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-core.c: Delete empty line
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:31 +0000 (01:43 -0300)]
[media] cx25821-core.c: Delete empty line

Delete redundant empty line.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-cards.c: Fix indent
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:30 +0000 (01:43 -0300)]
[media] cx25821-cards.c: Fix indent

Fix indent of statement to use tab instead of spaces.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-audio.h: Fix multiline defines
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:29 +0000 (01:43 -0300)]
[media] cx25821-audio.h: Fix multiline defines

Change column of line continuation character ('\') and fix indent of
multiline defines.
Also line up remaining constant defines.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-audio.h: Line up defines
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:28 +0000 (01:43 -0300)]
[media] cx25821-audio.h: Line up defines

Line up defines to the same column.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-audio-upstream.c: Change line endings
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:27 +0000 (01:43 -0300)]
[media] cx25821-audio-upstream.c: Change line endings

Change obscure line endings to less obscure ones. (improve readability)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-audio-upstream.c: Move operators
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:26 +0000 (01:43 -0300)]
[media] cx25821-audio-upstream.c: Move operators

Move operator of complex expression to the end of the lines to preserve
consistency.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-audio-upstream.c: Fix indent
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:25 +0000 (01:43 -0300)]
[media] cx25821-audio-upstream.c: Fix indent

Change wrong indent (with spaces and less than 7 columns) of statements
to tabs.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-alsa.c: Change line endings
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:24 +0000 (01:43 -0300)]
[media] cx25821-alsa.c: Change line endings

Change obscure line endings to less obscure ones. (improve readability)

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-alsa.c: Fix indent
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:23 +0000 (01:43 -0300)]
[media] cx25821-alsa.c: Fix indent

Delete unnecessary space before indented statement.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-alsa.c: Add braces to else clause
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:22 +0000 (01:43 -0300)]
[media] cx25821-alsa.c: Add braces to else clause

Add curly braces around else clause because corresponding if has them.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx25821-alsa.c: Line up comments
Leonid V. Fedorenchik [Sat, 22 Oct 2011 04:43:21 +0000 (01:43 -0300)]
[media] cx25821-alsa.c: Line up comments

Line up comments to the same column.

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] media/radio/tef6862: fix checking return value of i2c_master_send
Axel Lin [Wed, 16 Nov 2011 08:14:03 +0000 (05:14 -0300)]
[media] media/radio/tef6862: fix checking return value of i2c_master_send

i2c_master_send returns negative errno, or else the number of bytes written.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] staging: lirc_serial: Do not assume error codes returned by request_irq()
Ben Hutchings [Wed, 16 Nov 2011 04:54:04 +0000 (01:54 -0300)]
[media] staging: lirc_serial: Do not assume error codes returned by request_irq()

lirc_serial_probe() must fail if request_irq() returns an error, even if
it isn't EBUSY or EINVAL,

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] staging: lirc_serial: Fix bogus error codes
Ben Hutchings [Wed, 16 Nov 2011 04:53:35 +0000 (01:53 -0300)]
[media] staging: lirc_serial: Fix bogus error codes

Device not found?  ENODEV, not EINVAL.
Write to read-only device?  EPERM, not EBADF.
Invalid argument?  EINVAL, not ENOSYS.
Unsupported ioctl?  ENOIOCTLCMD, not ENOSYS.
Another function returned an error code?  Use that, don't replace it.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] staging: lirc_serial: Fix deadlock on resume failure
Ben Hutchings [Wed, 16 Nov 2011 04:53:25 +0000 (01:53 -0300)]
[media] staging: lirc_serial: Fix deadlock on resume failure

A resume function cannot remove the device it is resuming!

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] staging: lirc_serial: Free resources on failure paths of lirc_serial_probe()
Ben Hutchings [Wed, 16 Nov 2011 04:52:11 +0000 (01:52 -0300)]
[media] staging: lirc_serial: Free resources on failure paths of lirc_serial_probe()

Failure to allocate the I/O region leaves the IRQ allocated.
A later failure leaves them both allocated.

Reported-by: Torsten Crass <torsten.crass@eBiology.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] staging: lirc_serial: Fix init/exit order
Ben Hutchings [Wed, 16 Nov 2011 04:49:41 +0000 (01:49 -0300)]
[media] staging: lirc_serial: Fix init/exit order

Currently the module init function registers a platform_device and
only then allocates its IRQ and I/O region.  This allows allocation to
race with the device's suspend() function.  Instead, allocate
resources in the platform driver's probe() function and free them in
the remove() function.

The module exit function removes the platform device before the
character device that provides access to it.  Change it to reverse the
order of initialisation.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] board-dm646x-evm.c: wrong register used in setup_vpif_input_channel_mode
Hans Verkuil [Mon, 14 Nov 2011 17:20:49 +0000 (14:20 -0300)]
[media] board-dm646x-evm.c: wrong register used in setup_vpif_input_channel_mode

The function setup_vpif_input_channel_mode() used the VSCLKDIS register
instead of VIDCLKCTL. This meant that when in HD mode videoport channel 0
used a different clock from channel 1.

Clearly a copy-and-paste error.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ce168: remove experimental from Kconfig
Antti Palosaari [Sun, 13 Nov 2011 18:55:18 +0000 (15:55 -0300)]
[media] ce168: remove experimental from Kconfig

I have been working many years without problems.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ce6230: remove experimental from Kconfig
Antti Palosaari [Sun, 13 Nov 2011 18:53:04 +0000 (15:53 -0300)]
[media] ce6230: remove experimental from Kconfig

I have been working many years without problems.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cxd2820r: check bandwidth earlier for DVB-T/T2
Antti Palosaari [Sun, 13 Nov 2011 18:21:58 +0000 (15:21 -0300)]
[media] cxd2820r: check bandwidth earlier for DVB-T/T2

It is param that could be potentially unsupported and
due to that it is good idea to check it very first.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cxd2820r: switch to .get_if_frequency()
Antti Palosaari [Sun, 13 Nov 2011 17:41:25 +0000 (14:41 -0300)]
[media] cxd2820r: switch to .get_if_frequency()

All tuners used with cxd2820r offers IF frequency so switch that.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] tda18212: round IF frequency to close hardware value
Antti Palosaari [Sun, 13 Nov 2011 14:22:58 +0000 (11:22 -0300)]
[media] tda18212: round IF frequency to close hardware value

Chip configures IF frequency resolution of 50 kHz. Round it nearest.
Off-by 50 kHz is almost nothing in real life...

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] tda18212: implement .get_if_frequency()
Antti Palosaari [Sun, 13 Nov 2011 14:20:08 +0000 (11:20 -0300)]
[media] tda18212: implement .get_if_frequency()

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] qt1010: implement .get_if_frequency()
Antti Palosaari [Sun, 13 Nov 2011 04:07:42 +0000 (01:07 -0300)]
[media] qt1010: implement .get_if_frequency()

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] mt2060: implement .get_if_frequency()
Antti Palosaari [Sun, 13 Nov 2011 03:44:57 +0000 (00:44 -0300)]
[media] mt2060: implement .get_if_frequency()

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] af9013: use .get_if_frequency() when possible
Antti Palosaari [Sun, 13 Nov 2011 03:26:17 +0000 (00:26 -0300)]
[media] af9013: use .get_if_frequency() when possible

Get IF frequency from tuner if tuner provides it.

Remove TDA18271 and TDA18218 IF frequency hacks since both tuners provides .get_if_frequency().

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] tda18218: implement .get_if_frequency()
Antti Palosaari [Sun, 13 Nov 2011 03:19:56 +0000 (00:19 -0300)]
[media] tda18218: implement .get_if_frequency()

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] Fix typos in VIDEO_CX231XX_DVB Kconfig entry
Paul Bolle [Sun, 13 Nov 2011 15:16:40 +0000 (12:16 -0300)]
[media] Fix typos in VIDEO_CX231XX_DVB Kconfig entry

Commit ede676c72d ("[...] add digital support for PV SBTVD hybrid")
added "select MEDIA_TUNER_NXP18271" to the VIDEO_CX231XX_DVB Kconfig
entry. But there's no Kconfig symbol MEDIA_TUNER_NXP18271. That should
have been MEDIA_TUNER_TDA18271. (The code added in that commit uses
tda18271_attach, which is only available if MEDIA_TUNER_TDA18271 is
set.)

The selects of MEDIA_TUNER_XC5000 and MEDIA_TUNER_TDA18271 should only
be done if MEDIA_TUNER_CUSTOMISE isn't set.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] MAINTAINERS: Add m5mols driver maintainers
Heungjun Kim [Fri, 11 Nov 2011 11:05:33 +0000 (08:05 -0300)]
[media] MAINTAINERS: Add m5mols driver maintainers

Add the maintainers for the m5mols driver

Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] cx23885: add support for Mygica X8507
Alfredo Jesús Delaiti [Wed, 9 Nov 2011 18:13:00 +0000 (15:13 -0300)]
[media] cx23885: add support for Mygica X8507

This patch supports card Mygica X8507 (analog part)

This controller is a copy of driver card Mygica X8506

This patch depends on patch cx23885-alsa

To do: FM, ISDB-t, remote control, audio for composite1, S-Video and
video component.

Signed-off-by: Alfredo J. Delaiti <alfredodelaiti@netscape.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] video: Drop undue references to i2c-algo-bit
Jean Delvare [Wed, 9 Nov 2011 16:27:53 +0000 (13:27 -0300)]
[media] video: Drop undue references to i2c-algo-bit

There's one comment that has been copied from bttv to many other
media/video drivers:

/* init + register i2c algo-bit adapter */

Meanwhile, many drivers use hardware I2C implementations instead of
relying on i2c-algo-bit, so this comment is misleading. Remove the
reference to "algo-bit" from all drivers, to avoid any confusion. This
is the best way to ensure that the comments won't go out of sync
again. Anyone interested in the implementation details would rather
look at the code itself.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] firedtv-avc: Fix compilation warnings
Mauro Carvalho Chehab [Thu, 24 Nov 2011 17:04:18 +0000 (15:04 -0200)]
[media] firedtv-avc: Fix compilation warnings

drivers/media/dvb/firewire/firedtv-avc.c: In function ‘avc_tuner_tuneqpsk’:
drivers/media/dvb/firewire/firedtv-avc.c:394:4: warning: enumeration value ‘ROLLOFF_15’ not handled in switch [-Wswitch]
drivers/media/dvb/firewire/firedtv-avc.c:394:4: warning: enumeration value ‘ROLLOFF_13’ not handled in switch [-Wswitch]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] em28xx: Fix a few warnings due to HVR-930C addition
Mauro Carvalho Chehab [Thu, 24 Nov 2011 17:01:45 +0000 (15:01 -0200)]
[media] em28xx: Fix a few warnings due to HVR-930C addition

drivers/media/video/em28xx/em28xx-cards.c:339:30: warning: ‘hauppauge_930c_gpio’ defined but not used [-Wunused-variable]
drivers/media/video/em28xx/em28xx-dvb.c: In function ‘em28xx_dvb_init’:
drivers/media/video/em28xx/em28xx-dvb.c:886:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] staging: as102: Add missing function argument
Sylwester Nawrocki [Tue, 8 Nov 2011 22:16:04 +0000 (19:16 -0300)]
[media] staging: as102: Add missing function argument

Add missing dev argument in dev_err() call to correct an error
introduced in commit 880102898f19cf9f9ba36dc9d838b5476645ce00

Signed-off-by: Sylwester Nawrocki <snjw23@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] rc: Fix input deadlock and transmit error in redrat3 driver
Andrew Vincer [Tue, 8 Nov 2011 15:43:45 +0000 (12:43 -0300)]
[media] rc: Fix input deadlock and transmit error in redrat3 driver

Fixed submit urb logic so hardware doesn't hang trying to transmit
signal data

Removed unneeded enable/disable detector commands in
redrat3_transmit_ir (the hardware does this anyway) and converted
arguments to unsigned as per 5588dc2

Signed-off-by: Andrew Vincer <andrew@redrat.co.uk>
Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] av7110: wrong limiter in av7110_start_feed()
Dan Carpenter [Tue, 18 Oct 2011 05:12:09 +0000 (02:12 -0300)]
[media] av7110: wrong limiter in av7110_start_feed()

Smatch complains that the wrong limiter is used here:
drivers/media/dvb/ttpci/av7110.c +906 dvb_feed_start_pid(12)
error: buffer overflow 'npids' 5 <= 19

Here is the problem code:
   905          i = dvbdmxfeed->pes_type;
   906          npids[i] = (pid[i]&0x8000) ? 0 : pid[i];

"npids" is a 5 element array declared on the stack.  If
dvbdmxfeed->pes_type is more than 4 we probably put a (u16)0 past
the end of the array.

If dvbdmxfeed->pes_type is over 4 the rest of the function doesn't
do anything.  dvbdmxfeed->pes_type is capped at less than
DMX_TS_PES_OTHER (20) in the caller function, but I changed it to
less than or equal to DMX_TS_PES_PCR (4).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] TT CT-3650 i2c fix
Jose Alberto Reguero [Sun, 16 Oct 2011 10:36:57 +0000 (07:36 -0300)]
[media] TT CT-3650 i2c fix

This patch fix a bug in the i2c code of ttusb2 driver.

Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ir-sanyo-decoder.c doesn't compile
Hans Verkuil [Thu, 24 Nov 2011 11:47:51 +0000 (08:47 -0300)]
[media] ir-sanyo-decoder.c doesn't compile

I get this error when compiling for_v3.3:

There is a include <linux/module.h> missing.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] V4L: mt9t112: use after free in mt9t112_probe()
Dan Carpenter [Mon, 7 Nov 2011 17:44:12 +0000 (14:44 -0300)]
[media] V4L: mt9t112: use after free in mt9t112_probe()

priv gets dereferenced in mt9t112_set_params() so we should return
before calling that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ir-rc6-decoder: Support RC6-6A variable length data
lawrence rust [Mon, 31 Oct 2011 11:39:32 +0000 (08:39 -0300)]
[media] ir-rc6-decoder: Support RC6-6A variable length data

This patch to the IR RC6 decoder adds support for variable length
mode-6A frames which can range in size from 8 to 128 bits.  Please refer
to the following link for a detailed explanation or RC6 frames:
http://slydiman.narod.ru/scr/kb/rc6.htm

This change removes the assumption that frames are fixed length
(currently either 24 or 32 data bits) and actually counts the number of
bits until an end of frame marker is seen.

[mchehab@redhat.com: Tested with a RC-6(0) IR - 16 bits]
Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoMerge tag 'v3.2-rc2' into staging/for_v3.3
Mauro Carvalho Chehab [Wed, 23 Nov 2011 21:42:09 +0000 (19:42 -0200)]
Merge tag 'v3.2-rc2' into staging/for_v3.3

* tag 'v3.2-rc2': (3068 commits)
  Linux 3.2-rc2
  hfs: add sanity check for file name length
  fsl-rio: fix compile error
  blackfin: Fixup export.h includes
  Blackfin: add serial TX IRQ in individual platform resource
  virtio-pci: fix use after free
  ACPI / cpuidle: Remove acpi_idle_suspend (to fix suspend regression)
  drm/radeon/kms/combios: fix dynamic allocation of PM clock modes
  [CPUFREQ] db8500: fix build error due to undeclared i variable
  bma023: Add SFI translation for this device
  vrtc: change its year offset from 1960 to 1972
  ce4100: fix a build error
  arm/imx: fix imx6q mmc error when mounting rootfs
  arm/imx: fix AUTO_ZRELADDR selection
  arm/imx: fix the references to ARCH_MX3
  ARM: mx51/53: set pwm clock parent to ipg_perclk
  btrfs: rename the option to nospace_cache
  drm/radeon/kms/pm: switch to dynamically allocating clock mode array
  drm/radeon/kms: optimize r600_pm_profile_init
  drm/radeon/kms/pm: add a proper pm profile init function for fusion
  ...

Conflicts:
drivers/media/radio/Kconfig

12 years ago[media] rc: Add support for decoding Sanyo protocol
Mauro Carvalho Chehab [Wed, 23 Nov 2011 15:04:08 +0000 (12:04 -0300)]
[media] rc: Add support for decoding Sanyo protocol

This protocol is found on Sanyo/Aiwa remotes.

Tested with an Aiwa RC-7AS06 remote control.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] ir-nec-decoder: Report what bit failed at debug msg
Mauro Carvalho Chehab [Wed, 23 Nov 2011 15:03:32 +0000 (12:03 -0300)]
[media] ir-nec-decoder: Report what bit failed at debug msg

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] get_dvb_firmware: add support for HVR-930C firmware
Eddi De Pieri [Mon, 21 Nov 2011 09:43:52 +0000 (06:43 -0300)]
[media] get_dvb_firmware: add support for HVR-930C firmware

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] em28xx: Add IR support for HVR-930C
Mauro Carvalho Chehab [Sun, 20 Nov 2011 14:16:25 +0000 (12:16 -0200)]
[media] em28xx: Add IR support for HVR-930C

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] em28xx: Add IR support for em2884
Mauro Carvalho Chehab [Sun, 20 Nov 2011 14:23:54 +0000 (12:23 -0200)]
[media] em28xx: Add IR support for em2884

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] em28xx: Fix CodingStyle issues introduced by changeset 82e7dbb
Mauro Carvalho Chehab [Sun, 20 Nov 2011 13:23:24 +0000 (11:23 -0200)]
[media] em28xx: Fix CodingStyle issues introduced by changeset 82e7dbb

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] em28xx: initial support for HAUPPAUGE HVR-930C again
Eddi De Pieri [Sat, 19 Nov 2011 14:37:14 +0000 (11:37 -0300)]
[media] em28xx: initial support for HAUPPAUGE HVR-930C again

With this patch I try again to add initial support for HVR930C.

Tested only DVB-T, since in Italy Analog service is stopped.

Actually "scan -a0 -f1", find only about 50 channel while 400 should
be available.

[mchehab@redhat.com: Tested with DVB-C and fixed a few whitespace issues]
Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] xc5000: Add support for get_if_frequency
Mauro Carvalho Chehab [Fri, 23 Sep 2011 16:03:42 +0000 (13:03 -0300)]
[media] xc5000: Add support for get_if_frequency

This is needed for devices with DRX-K and xc5000.

Tested with a HVR 930C hardware.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years ago[media] em28xx: Fix some Terratec entries (H5 and XS)
Mauro Carvalho Chehab [Wed, 16 Nov 2011 16:38:28 +0000 (14:38 -0200)]
[media] em28xx: Fix some Terratec entries (H5 and XS)

As reported by  Andreas Oberritter <obi@linuxtv.org>, changeset
33ba28eebc3e1758e6adc1fcec9e1e3151bac453 did the wrong thing.

Fix it to properly reflect the entries for Terratec H5 revs 1 and 2,
and restore Terratec XS entry.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoLinux 3.2-rc2
Linus Torvalds [Tue, 15 Nov 2011 17:02:59 +0000 (15:02 -0200)]
Linux 3.2-rc2

12 years agoMerge branch 'iommu/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
Linus Torvalds [Tue, 15 Nov 2011 16:56:56 +0000 (14:56 -0200)]
Merge branch 'iommu/fixes' of git://git./linux/kernel/git/joro/iommu

* 'iommu/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
  iommu: omap: Fix compile failure

12 years agoMerge branch 'fixes' of git://git.linaro.org/people/triad/linux-pinctrl
Linus Torvalds [Tue, 15 Nov 2011 16:48:51 +0000 (14:48 -0200)]
Merge branch 'fixes' of git://git.linaro.org/people/triad/linux-pinctrl

* 'fixes' of git://git.linaro.org/people/triad/linux-pinctrl:
  pinctrl: hide subsystem from the populace
  pinctrl: fix "warning: 'struct pinctrl_dev' declared inside parameter list"

12 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Linus Torvalds [Tue, 15 Nov 2011 16:47:28 +0000 (14:47 -0200)]
Merge branch 'for-linus' of git://git./linux/kernel/git/paulg/linux

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux:
  fsl-rio: fix compile error

12 years agoMerge branch 'gpio/merge' of git://git.secretlab.ca/git/linux-2.6
Linus Torvalds [Tue, 15 Nov 2011 16:45:50 +0000 (14:45 -0200)]
Merge branch 'gpio/merge' of git://git.secretlab.ca/git/linux-2.6

* 'gpio/merge' of git://git.secretlab.ca/git/linux-2.6:
  gpio: pca953x: propagate the errno from the chip_init functions
  gpio: pca953x: remove unneeded check for chip type
  gpio/omap: check return value from irq_alloc_generic_chip
  gpio/omap: replace MOD_REG_BIT macro with static inline

12 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo...
Linus Torvalds [Tue, 15 Nov 2011 16:31:12 +0000 (14:31 -0200)]
Merge branch 'for-linus' of git://git./linux/kernel/git/lliubbo/blackfin

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo/blackfin:
  blackfin: Fixup export.h includes
  Blackfin: add serial TX IRQ in individual platform resource

12 years agohfs: add sanity check for file name length
Dan Carpenter [Mon, 14 Nov 2011 14:52:08 +0000 (17:52 +0300)]
hfs: add sanity check for file name length

On a corrupted file system the ->len field could be wrong leading to
a buffer overflow.

Reported-and-acked-by: Clement LECIGNE <clement.lecigne@netasq.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 years agofsl-rio: fix compile error
Liu Gang [Fri, 11 Nov 2011 13:48:28 +0000 (21:48 +0800)]
fsl-rio: fix compile error

The "#include <linux/module.h>" was replaced by "#include <linux/export.h>"
in the patch "powerpc: various straight conversions from module.h --> export.h".
This will cause the following compile problem:
arch/powerpc/sysdev/fsl_rio.c: In function 'fsl_rio_mcheck_exception':
arch/powerpc/sysdev/fsl_rio.c:296: error: implicit declaration of function 'search_exception_tables'.

The file fsl_rio.c needs the declaration of function "search_exception_tables"
in the header file "linux/module.h".

Signed-off-by: Liu Gang <Gang.Liu@freescale.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>