linux/drivers/media
Mauro Carvalho Chehab 82d229cde0 [media] bdisp-debug: don't try to divide by s64
There are several warnings there, on some architectures, related
to dividing a s32 by a s64 value:

drivers/media/platform/sti/bdisp/bdisp-debug.c:594: warning: comparison of distinct pointer types lacks a cast
drivers/media/platform/sti/bdisp/bdisp-debug.c:594: warning: right shift count >= width of type
drivers/media/platform/sti/bdisp/bdisp-debug.c:594: warning: passing argument 1 of '__div64_32' from incompatible pointer type
drivers/media/platform/sti/bdisp/bdisp-debug.c:595: warning: comparison of distinct pointer types lacks a cast
drivers/media/platform/sti/bdisp/bdisp-debug.c:595: warning: right shift count >= width of type
drivers/media/platform/sti/bdisp/bdisp-debug.c:595: warning: passing argument 1 of '__div64_32' from incompatible pointer type  CC [M]  drivers/media/tuners/mt2060.o
drivers/media/platform/sti/bdisp/bdisp-debug.c:596: warning: comparison of distinct pointer types lacks a cast
drivers/media/platform/sti/bdisp/bdisp-debug.c:596: warning: right shift count >= width of type
drivers/media/platform/sti/bdisp/bdisp-debug.c:596: warning: passing argument 1 of '__div64_32' from incompatible pointer type
drivers/media/platform/sti/bdisp/bdisp-debug.c:597: warning: comparison of distinct pointer types lacks a cast
drivers/media/platform/sti/bdisp/bdisp-debug.c:597: warning: right shift count >= width of type
drivers/media/platform/sti/bdisp/bdisp-debug.c:597: warning: passing argument 1 of '__div64_32' from incompatible pointer type

That doesn't make much sense. What the driver is actually trying
to do is to divide one second by a value. So, check the range
before dividing. That warrants the right result and will remove
the warnings on non-64 bits archs.

Also fixes this warning:
drivers/media/platform/sti/bdisp/bdisp-debug.c:588: warning: comparison of distinct pointer types lacks a cast

by using div64_s64() instead of calling do_div() directly.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-06-11 07:34:30 -03:00
..
common [media] b2c2: Add option to skip the first 6 pid filters 2015-06-09 20:57:56 -03:00
dvb-core [media] dvb-core: prevent some corruption the legacy ioctl 2015-06-10 11:47:56 -03:00
dvb-frontends ts2020: fix compilation on i386 2015-06-10 12:26:18 -03:00
firewire [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
i2c [media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16 2015-06-10 11:43:19 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] cx88: don't declare restart_video_queue if not used 2015-06-10 17:58:00 -03:00
platform [media] bdisp-debug: don't try to divide by s64 2015-06-11 07:34:30 -03:00
radio [media] radio-si470x-i2c: Pass the IRQF_ONESHOT flag 2015-06-06 07:34:08 -03:00
rc [media] rc/keymaps: add keytable for Twinhan DTV CAB CI 2015-06-10 11:52:25 -03:00
tuners [media] fc2580: add missing error status when probe() fails 2015-06-09 17:22:57 -03:00
usb [media] au0828: move dev->boards atribuition to happen earlier 2015-06-10 12:39:35 -03:00
v4l2-core [media] v4l2-dv-timings: add interlace support in detect cvt/gtf 2015-06-09 17:44:42 -03:00
Kconfig media controller: add EXPERIMENTAL to Kconfig option for DVB support 2015-05-08 14:48:49 -03:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00