android_kernel_xiaomi_sm8350/drivers/media/video
Andres Salomon bca5c2c550 ov7670: clean up ov7670_read semantics
Cortland Setlow pointed out a bug in ov7670.c where the result from
ov7670_read() was just being checked for !0, rather than <0.  This made me
realize that ov7670_read's semantics were rather confusing; it both fills
in 'value' with the result, and returns it.  This is goes against general
kernel convention; so rather than fixing callers, let's fix the function.

This makes ov7670_read return <0 in the case of an error, and 0 upon
success. Thus, code like:

res = ov7670_read(...);
if (!res)
	goto error;

..will work properly.

Signed-off-by: Cortland Setlow <csetlow@tower-research.com>
Signed-off-by: Andres Salomon <dilinger@debian.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-12 14:33:41 -07:00
..
au0828 V4L/DVB (8043): au0828: add support for additional USB device id's 2008-06-26 15:58:52 -03:00
bt8xx V4L/DVB (7967): bt8xx: unaligned access 2008-06-05 06:35:52 -03:00
cpia2 V4L/DVB (7519): media/video/cpia2 replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
cx18 V4L/DVB (8069): cx18: Fix S-Video and Compsite inputs for the Yuan MPC718 and enable card entry 2008-06-26 15:58:55 -03:00
cx88 V4L/DVB (8026): Avoids an OOPS if dev struct can't be successfully recovered 2008-06-26 15:58:47 -03:00
cx23885 V4L/DVB (7965): annotate bcx_riscmem 2008-06-05 06:35:51 -03:00
cx25840 V4L/DVB (8007): cx18/cx25840: the S-Video LUMA input can use all In1-In8 inputs 2008-06-26 15:58:42 -03:00
em28xx V4L/DVB (8026): Avoids an OOPS if dev struct can't be successfully recovered 2008-06-26 15:58:47 -03:00
et61x251 byteorder: don't directly include linux/byteorder/generic.h 2008-05-16 12:01:45 -07:00
ivtv V4L/DVB (7963): ivtv: trivial annotations 2008-06-05 06:35:49 -03:00
ovcamchip V4L/DVB (7524): media/video/ovcamchip replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
pvrusb2 V4L/DVB (7900): pvrusb: Fix Kconfig if DVB=m V4L_core=y 2008-05-14 02:56:47 -03:00
pwc V4L/DVB (7558): videobuf: Improve command output for debug purposes 2008-04-24 14:08:48 -03:00
saa7134 V4L/DVB (8108): Fix open/close race in saa7134 2008-06-26 15:58:59 -03:00
sn9c102 byteorder: don't directly include linux/byteorder/generic.h 2008-05-16 12:01:45 -07:00
usbvideo V4L/DVB (7970): mix trivial endianness annotations 2008-06-05 06:35:52 -03:00
usbvision V4L/DVB (7846): Re-creates VIDEO_TUNER 2008-05-14 02:54:07 -03:00
uvc V4L/DVB (8178): uvc: Fix compilation breakage for the other drivers, if uvc is selected 2008-07-02 08:58:15 -03:00
zc0301 byteorder: don't directly include linux/byteorder/generic.h 2008-05-16 12:01:45 -07:00
adv7170.c
adv7175.c
arv.c
bt819.c
bt856.c
bt866.c
btcx-risc.c V4L/DVB (7965): annotate bcx_riscmem 2008-06-05 06:35:51 -03:00
btcx-risc.h V4L/DVB (7965): annotate bcx_riscmem 2008-06-05 06:35:51 -03:00
bw-qcam.c
bw-qcam.h
c-qcam.c V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc 2008-04-24 14:09:40 -03:00
cafe_ccic-regs.h
cafe_ccic.c
compat_ioctl32.c
cpia_pp.c
cpia_usb.c V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
cpia.c
cpia.h V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
cs53l32a.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
cs5345.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
cs8420.h
cx2341x.c
dabfirmware.h
dabusb.c
dabusb.h
dpc7146.c
font.h
hexium_gemini.c
hexium_orion.c
ibmmpeg2.h
indycam.c
indycam.h
ir-kbd-i2c.c V4L/DVB (7751): ir-kbd-i2c: Save a temporary memory allocation in ir_probe 2008-04-26 09:29:58 -03:00
Kconfig V4L/DVB (8145a): USB Video Class driver 2008-06-30 17:31:13 -03:00
ks0127.c
ks0127.h
m52790.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
Makefile V4L/DVB (8145a): USB Video Class driver 2008-06-30 17:31:13 -03:00
meye.c V4L/DVB (7666): meye: Replace meye_do_ioctl to use video_ioctl2 2008-04-24 14:09:45 -03:00
meye.h
msp3400-driver.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
msp3400-driver.h
msp3400-kthreads.c
mt9m001.c V4L/DVB (7858): video: build fix for drivers/media/video/mt9v022.c 2008-05-14 02:54:10 -03:00
mt9v022.c V4L/DVB (7859): mt9v022: fix a copy-paste error in comment 2008-05-14 02:54:11 -03:00
mxb.c
mxb.h
ov511.c V4L/DVB (7641): V4L: ov511 - use usb_interface as parent, not usb_device 2008-04-24 14:09:44 -03:00
ov511.h V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
ov7670.c ov7670: clean up ov7670_read semantics 2008-07-12 14:33:41 -07:00
planb.c
planb.h
pms.c
pxa_camera.c V4L/DVB (8039): pxa-camera: fix platform_get_irq() error handling. 2008-06-26 15:58:50 -03:00
saa711x_regs.h
saa711x.c
saa717x.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
saa5246a.c
saa5246a.h
saa5249.c
saa6588.c
saa7110.c
saa7111.c
saa7114.c
saa7115.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
saa7121.h
saa7127.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
saa7146.h
saa7146reg.h
saa7185.c
saa7191.c
saa7191.h
saa7196.h
se401.c V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
se401.h
soc_camera.c V4L/DVB (8040): soc-camera: remove soc_camera_host_class class 2008-06-26 15:58:50 -03:00
stk-sensor.c
stk-webcam.c V4L/DVB (7813): Fix compilation, when V4L1_COMPAT is disabled 2008-05-14 02:54:00 -03:00
stk-webcam.h
stradis.c
stv680.c V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
stv680.h
tcm825x.c i2c: Convert some more new-style drivers to use module aliasing 2008-05-11 20:37:06 +02:00
tcm825x.h
tda7432.c
tda9840.c V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
tda9840.h
tda9875.c
tea6415c.c V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
tea6415c.h
tea6420.c V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
tea6420.h
tlv320aic23b.c i2c: Convert some more new-style drivers to use module aliasing 2008-05-11 20:37:06 +02:00
tuner-3036.c
tuner-core.c V4L/DVB (7905): check_v4l2 should return -EINVAL on error 2008-06-05 06:35:41 -03:00
tvaudio.c i2c: Convert some more new-style drivers to use module aliasing 2008-05-11 20:37:06 +02:00
tveeprom.c V4L/DVB (7895): tveeprom: update Hauppauge analog audio and video decoders 2008-05-14 02:56:46 -03:00
tvp5150_reg.h
tvp5150.c
upd64031a.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
upd64083.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
v4l1-compat.c
v4l2-common.c i2c: Add support for device alias names 2008-04-29 23:11:39 +02:00
v4l2-int-device.c
videobuf-core.c Fix a deadlock in the bttv driver 2008-05-20 10:12:26 -07:00
videobuf-dma-sg.c V4L/DVB (7566): videobuf-dvb: allow its usage with videobuf-vmalloc 2008-04-24 14:09:39 -03:00
videobuf-dvb.c V4L/DVB (7566): videobuf-dvb: allow its usage with videobuf-vmalloc 2008-04-24 14:09:39 -03:00
videobuf-vmalloc.c V4L/DVB (7566): videobuf-dvb: allow its usage with videobuf-vmalloc 2008-04-24 14:09:39 -03:00
videocodec.c V4L/DVB (7580): Fix concurrent read from /proc/videocodecs 2008-04-24 14:09:40 -03:00
videocodec.h
videodev.c V4L/DVB (8092): videodev: simplify and fix standard enumeration 2008-06-26 15:58:57 -03:00
vino.c mm: remove nopage 2008-04-28 08:58:18 -07:00
vino.h
vivi.c V4L/DVB (8100): V4L/vivi: fix possible memory leak in vivi_fillbuff 2008-06-26 15:58:58 -03:00
vp27smpx.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
vpx3220.c
w9966.c V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
w9968cf_decoder.h
w9968cf_vpp.h
w9968cf.c
w9968cf.h V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences 2008-04-24 14:07:59 -03:00
wm8739.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
wm8775.c i2c: Convert remaining new-style drivers to use module aliasing 2008-05-18 20:49:40 +02:00
zoran_card.c
zoran_card.h
zoran_device.c V4L/DVB (7968): zoran: endianness annotations 2008-06-05 06:35:52 -03:00
zoran_device.h
zoran_driver.c V4L/DVB (7968): zoran: endianness annotations 2008-06-05 06:35:52 -03:00
zoran_procfs.c drivers: use non-racy method for proc entries creation (2) 2008-04-29 08:06:22 -07:00
zoran_procfs.h
zoran.h V4L/DVB (7968): zoran: endianness annotations 2008-06-05 06:35:52 -03:00
zr364xx.c
zr36016.c
zr36016.h
zr36050.c
zr36050.h
zr36057.h
zr36060.c
zr36060.h