16 Jan, 2012
1 commit
-
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (655 commits)
[media] revert patch: HDIC HD29L2 DMB-TH USB2.0 reference design driver
mb86a20s: Add a few more register settings at the init seq
mb86a20s: Group registers into the same line
[media] [PATCH] don't reset the delivery system on DTV_CLEAR
[media] [BUG] it913x-fe fix typo error making SNR levels unstable
[media] cx23885: Query the CX25840 during enum_input for status
[media] cx25840: Add support for g_input_status
[media] rc-videomate-m1f.c Rename to match remote controler name
[media] drivers: media: au0828: Fix dependency for VIDEO_AU0828
[media] convert drivers/media/* to use module_platform_driver()
[media] drivers: video: cx231xx: Fix dependency for VIDEO_CX231XX_DVB
[media] Exynos4 JPEG codec v4l2 driver
[media] doc: v4l: selection: choose pixels as units for selection rectangles
[media] v4l: s5p-tv: mixer: fix setup of VP scaling
[media] v4l: s5p-tv: mixer: add support for selection API
[media] v4l: emulate old crop API using extended crop/compose API
[media] doc: v4l: add documentation for selection API
[media] doc: v4l: add binary images for selection API
[media] v4l: add support for selection api
[media] hd29l2: fix review findings
...
13 Jan, 2012
2 commits
-
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.Acked-by: Mauro Carvalho Chehab
Signed-off-by: Rusty Russell -
Cut and paste bug.
Cc: Mauro Carvalho Chehab
Cc: devel@driverdev.osuosl.org
Signed-off-by: Rusty Russell
07 Jan, 2012
1 commit
-
This resolves the conflict in the arch/arm/mach-s3c64xx/s3c6400.c file,
and it fixes the build error in the arch/x86/kernel/microcode_core.c
file, that the merge did not catch.The microcode_core.c patch was provided by Stephen Rothwell
who was invaluable in the merge issues involved
with the large sysdev removal process in the driver-core tree.Signed-off-by: Greg Kroah-Hartman
06 Jan, 2012
3 commits
-
The conditional after the kzalloc says that the tested expression should
never be true, but if it were, the allocated data would have to be freed.
This change just moves the allocation below the test, to avoid any
possibility of the problem.A simplified version of the semantic match that finds the problem is as
follows: (http://coccinelle.lip6.fr)//
@r exists@
local idexpression x;
statement S;
identifier f1;
position p1,p2;
expression *ptr != NULL;
@@x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
...
if (x == NULL) S
}
x->f1
...>
(
return \(0\|\|ptr\);
|
return@p2 ...;
)@script:python@
p1 << r.p1;
p2 << r.p2;
@@print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
//Signed-off-by: Julia Lawall
Signed-off-by: Mauro Carvalho Chehab -
There were some curly braces missing so the probe() function always
failed.Signed-off-by: Dan Carpenter
Signed-off-by: Mauro Carvalho Chehab -
I changed the function definitions for dt3155_queue_setup() to match the
newer API. The dt3155_start_streaming() function didn't do anything so
I just removed it.This silences the following gcc warnings:
drivers/staging/media/dt3155v4l/dt3155v4l.c:307:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/staging/media/dt3155v4l/dt3155v4l.c:307:2: warning: (near initialization for ‘q_ops.queue_setup’) [enabled by default]
drivers/staging/media/dt3155v4l/dt3155v4l.c:311:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/staging/media/dt3155v4l/dt3155v4l.c:311:2: warning: (near initialization for ‘q_ops.start_streaming’) [enabled by default]Signed-off-by: Dan Carpenter
Acked-by: Marek Szyprowski
Signed-off-by: Mauro Carvalho Chehab
05 Jan, 2012
1 commit
-
Now, ops->info.type is handled inside the dvb_frontend
core, only for DVBv3 calls, and according with the
delivery system. So, drivers should not care or use it,
otherwise, it may have issues with DVBv5 calls.The drivers that were still using it were detected via
this small temporary hack:--- a/include/linux/dvb/frontend.h
+++ b/include/linux/dvb/frontend.h
@@ -29,13 +29,16 @@
#includetypedef enum fe_type {
+#if defined(__DVB_CORE__) || !defined (__KERNEL__)
FE_QPSK,
FE_QAM,
FE_OFDM,
FE_ATSC
+#else
+FE_FOOO
+#endif
} fe_type_t;-
typedef enum fe_caps {
FE_IS_STUPID = 0,
FE_CAN_INVERSION_AUTO = 0x1,Signed-off-by: Mauro Carvalho Chehab
31 Dec, 2011
4 commits
-
Signed-off-by: Mauro Carvalho Chehab
-
Instead of using dvb_frontend_parameters struct, that were
designed for a subset of the supported standards, use the DVBv5
cache information.Also, fill the supported delivery systems at dvb_frontend_ops
struct.Signed-off-by: Mauro Carvalho Chehab
-
Creates a DVBv5 get_frontend call, renaming the DVBv3 one to
get_frontend_legacy(), while not all frontends are converted.After the conversion for all drivers, get_frontend_legacy()
will be removed.Signed-off-by: Mauro Carvalho Chehab
-
Passing DVBv3 parameters to set_frontend is not fun, as the
core doesn't have any way to know if the driver is using the
v3 or v5 parameters. So, rename the callback and add a new
one to allow distinguish between a mixed v3/v5 paramenter call
from a pure v5 call.After having all frontends to use the new way, the legacy
call can be removed.Signed-off-by: Mauro Carvalho Chehab
30 Dec, 2011
1 commit
-
Linux 3.2-rc7
* tag 'v3.2-rc7': (1304 commits)
Linux 3.2-rc7
netfilter: xt_connbytes: handle negation correctly
Btrfs: call d_instantiate after all ops are setup
Btrfs: fix worker lock misuse in find_worker
net: relax rcvbuf limits
rps: fix insufficient bounds checking in store_rps_dev_flow_table_cnt()
net: introduce DST_NOPEER dst flag
mqprio: Avoid panic if no options are provided
bridge: provide a mtu() method for fake_dst_ops
md/bitmap: It is OK to clear bits during recovery.
md: don't give up looking for spares on first failure-to-add
md/raid5: ensure correct assessment of drives during degraded reshape.
md/linear: fix hot-add of devices to linear arrays.
sparc64: Fix MSIQ HV call ordering in pci_sun4v_msiq_build_irq().
pata_of_platform: Add missing CONFIG_OF_IRQ dependency.
ipv4: using prefetch requires including prefetch.h
VFS: Fix race between CPU hotplug and lglocks
vfs: __read_cache_page should use gfp argument rather than GFP_KERNEL
USB: Fix usb/isp1760 build on sparc
net: Add a flow_cache_flush_deferred function
...Conflicts:
drivers/media/common/tuners/tda18218.c
drivers/media/video/omap3isp/ispccdc.c
drivers/staging/media/as102/as102_drv.h
26 Nov, 2011
1 commit
-
This silences the following Sparse warnings:
lirc_imon.c:404:32: warning: incorrect type in argument 1 (different address spaces)
lirc_imon.c:404:32: expected void const [noderef] *
lirc_imon.c:404:32: got char const *buf
lirc_imon.c:117:28: warning: incorrect type in initializer (incompatible argument 2 (different address spaces))
lirc_imon.c:117:28: expected long ( *write )( ... )
lirc_imon.c:117:28: got long ( static [toplevel] * )( ... )Signed-off-by: Dan Carpenter
Signed-off-by: Mauro Carvalho Chehab
25 Nov, 2011
19 commits
-
commit a846d8fce9e8be30046be3c512982bd0345e7015
The 2250 board uses bulk endpoint for interrupt handling,
and should use a bulk urb instead of an int urb.Signed-off-by: Pete Eberlein
Signed-off-by: Mauro Carvalho Chehab -
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
Signed-off-by: Sylwester Nawrocki
Signed-off-by: Gianluca Gennari
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
Drop usb_class_driver and collaterals as it is not used
Signed-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
Add easycap prefix to global function to reduce
possibility of name collision.Signed-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
1. kill_video_usb can be used in all places where video urbs are killed
and reduce code repetition2. remove unnecessary check for easycap == NULL in the function
as it is always checked by the calling function3. rename the function to easycap_video_kill_urb to reduce
possibility of name conflict4. implement also easycap_audio_kill_urb
5. simplify freeing urbs
Signed-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
peasycap was allocated using kzalloc so drop all
to zero initializationsSigned-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
change statements of types
if (err)
return err
else
do somethingand
if (ok)
do something
else
return errinto
if (err)
return errdo something
Signed-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
1. saa and stk initialization tables are less then
256 entries
2. stk table can fit into u16 and saa into u8size before
text data bss dec hex filename
105687 1072 1134800 1241559 12f1d7 easycap.kosize after
text data bss dec hex filename
97919 1072 1134800 1233791 12d37f easycap.koSigned-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Tomas Winkler
Signed-off-by: Mauro Carvalho Chehab -
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
Signed-off-by: Mauro Carvalho Chehab -
lirc_serial_probe() must fail if request_irq() returns an error, even if
it isn't EBUSY or EINVAL,Signed-off-by: Ben Hutchings
Signed-off-by: Mauro Carvalho Chehab -
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
Signed-off-by: Mauro Carvalho Chehab -
A resume function cannot remove the device it is resuming!
Signed-off-by: Ben Hutchings
Signed-off-by: Mauro Carvalho Chehab -
Failure to allocate the I/O region leaves the IRQ allocated.
A later failure leaves them both allocated.Reported-by: Torsten Crass
Signed-off-by: Ben Hutchings
Signed-off-by: Mauro Carvalho Chehab -
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
Signed-off-by: Mauro Carvalho Chehab -
Add missing dev argument in dev_err() call to correct an error
introduced in commit 880102898f19cf9f9ba36dc9d838b5476645ce00Signed-off-by: Sylwester Nawrocki
Signed-off-by: Mauro Carvalho Chehab
24 Nov, 2011
1 commit
-
* 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
19 Nov, 2011
1 commit
-
This converts the drivers in drivers/staging/* to use the
module_usb_driver() macro which makes the code smaller and a bit
simpler.Added bonus is that it removes some unneeded kernel log messages about
drivers loading and/or unloading.Cc: "David Täht"
Cc: Marek Belisko
Cc: Al Cho
Cc: Forest Bond
Cc: Pavel Machek
Cc: Huajun Li
Cc: Zac Storer
Cc: Randy Dunlap
Cc: Mauro Carvalho Chehab
Cc: edwin_rong
Cc: Ben Hutchings
Cc: Julia Lawall
Cc: Ilia Mirkin
Cc: Joe Perches
Cc: Pekka Enberg
Cc: "John W. Linville"
Cc: Paul Gortmaker
Cc: Larry Finger
Signed-off-by: Greg Kroah-Hartman
17 Nov, 2011
1 commit
-
Fix x86 allyesconfig builds. Builds fail due to a non-static variable
named 'debug' in drivers/staging/media/as102:arch/x86/built-in.o:arch/x86/kernel/entry_32.S:1296: first defined here
ld: Warning: size of symbol `debug' changed from 90 in arch/x86/built-in.o to 4 in drivers/built-in.oThou shalt have no non-static identifiers that are named 'debug'.
Signed-off-by: Randy Dunlap
Cc: Pierrick Hascoet
Signed-off-by: Linus Torvalds
08 Nov, 2011
4 commits
-
Remove pre-processor defined as10x_handle_t data type by directly
replacing it with struct as102_bus_adapter_t. phandle is renamed
to adap inside function bodies.Cc: Devin Heitmueller
Signed-off-by: Sylwester Nawrocki
Signed-off-by: Mauro Carvalho Chehab -
Supresses following checkpatch warning:
WARNING: static const char * array should probably be static const char * constCc: Devin Heitmueller
Signed-off-by: Sylwester Nawrocki
Signed-off-by: Mauro Carvalho Chehab -
Fixes following checkpatch.pl warning:
WARNING: externs should be avoided in .c filesCc: Devin Heitmueller
Signed-off-by: Sylwester Nawrocki
Signed-off-by: Mauro Carvalho Chehab -
Cc: Devin Heitmueller
Signed-off-by: Sylwester Nawrocki
Signed-off-by: Mauro Carvalho Chehab