linux-stable/drivers/media
Daniel Wagner 7c073fffb7 [media] imon: use complete() instead of complete_all()
There is only one waiter for the completion, therefore there is no need
to use complete_all(). Let's make that clear by using complete() instead
of complete_all().

While we are at it, we do a small optimization with the reinitialization
of the completion before we use it.

The usage pattern of the completion is:

waiter context                          waker context

send_packet()
  init_completion()
  usb_submit_urb()
  wait_for_completion_interruptible()

                                        usb_tx_callback()
                                          complete()

                                        imon_disonnect()
                                          complete()

Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-10-24 17:39:43 -02:00
..
common [media] vivid: Add support for HSV encoding 2016-10-21 15:54:16 -02:00
dvb-core [media] dvb-usb-dvbsky: Add support for TechnoTrend S2-4650 CI 2016-10-24 17:14:25 -02:00
dvb-frontends [media] mb86a20s: always initialize a return value 2016-10-24 17:16:56 -02:00
firewire [media] firewire: don't break long lines 2016-10-21 10:06:00 -02:00
i2c [media] ad5820: Fix sparse warning 2016-10-24 17:37:12 -02:00
mmc
pci [media] tw68: don't break long lines 2016-10-21 09:29:44 -02:00
platform [media] coda: add missing header dependencies 2016-10-24 17:02:27 -02:00
radio [media] radio: don't break long lines 2016-10-21 10:06:56 -02:00
rc [media] imon: use complete() instead of complete_all() 2016-10-24 17:39:43 -02:00
spi [media] gs1662: make checkpatch happy 2016-09-19 14:39:49 -03:00
tuners [media] tuners: don't break long lines 2016-10-21 10:08:13 -02:00
usb [media] dvb-usb-dvbsky: Add support for TechnoTrend S2-4650 CI 2016-10-24 17:14:25 -02:00
v4l2-core [media] videodev2.h Add HSV formats 2016-10-21 15:44:54 -02:00
cec-edid.c [media] cec-edid: check for IEEE identifier 2016-08-22 14:04:51 -03:00
Kconfig [media] media Kconfig: improve the spi integration 2016-09-19 14:37:05 -03:00
Makefile [media] Add GS1662 driver, a video serializer 2016-09-19 14:36:24 -03:00
media-device.c [media] media: Add flags to tell whether to take graph mutex for an IOCTL 2016-09-22 10:28:40 -03:00
media-devnode.c
media-entity.c [media] media: Move media_device link_notify operation to an ops structure 2016-09-09 11:20:09 -03:00