All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-media@vger.kernel.org
Cc: hverkuil@xs4all.nl, mchehab@infradead.org,
	sakari.ailus@maxwell.research.nokia.com
Subject: hdpvr: Replace video_is_unregistered with video_is_registered
Date: Wed, 18 Nov 2009 01:38:46 +0100	[thread overview]
Message-ID: <1258504731-8430-6-git-send-email-laurent.pinchart@ideasonboard.com> (raw)
In-Reply-To: <1258504731-8430-1-git-send-email-laurent.pinchart@ideasonboard.com>

Fix the hdpvr driver to use the video_is_registered function instead of
video_is_unregistered.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Index: v4l-dvb-mc-uvc/linux/drivers/media/video/hdpvr/hdpvr-video.c
===================================================================
--- v4l-dvb-mc-uvc.orig/linux/drivers/media/video/hdpvr/hdpvr-video.c
+++ v4l-dvb-mc-uvc/linux/drivers/media/video/hdpvr/hdpvr-video.c
@@ -519,7 +519,7 @@ static unsigned int hdpvr_poll(struct fi
 
 	mutex_lock(&dev->io_mutex);
 
-	if (video_is_unregistered(dev->video_dev)) {
+	if (!video_is_registered(dev->video_dev)) {
 		mutex_unlock(&dev->io_mutex);
 		return -EIO;
 	}

  parent reply	other threads:[~2009-11-18  0:38 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18  0:38 [PATCH/RFC] V4L core cleanups Laurent Pinchart
2009-11-18  0:38 ` v4l: Add video_device_node_name function Laurent Pinchart
2009-11-18  7:06   ` Hans Verkuil
2009-11-18 12:48     ` Laurent Pinchart
2009-11-18  0:38 ` v4l: Use the new " Laurent Pinchart
2009-11-18  6:29   ` Hans Verkuil
2009-11-18  9:30     ` Laurent Pinchart
2009-11-18  0:38 ` v4l: Remove video_device::num usage from device drivers Laurent Pinchart
2009-11-18  0:38 ` v4l: Replace video_is_unregistered with video_is_registered Laurent Pinchart
2009-11-18  7:15   ` Hans Verkuil
2009-11-18  0:38 ` Laurent Pinchart [this message]
2009-11-18  0:38 ` v4l: Use the video_is_registered function in device drivers Laurent Pinchart
2009-11-18  0:38 ` v4l: Use the video_drvdata function in drivers Laurent Pinchart
2009-11-18  7:01   ` Hans Verkuil
2009-11-18  8:56     ` Devin Heitmueller
2009-11-18  9:13       ` Hans Verkuil
2009-11-18  9:36         ` Devin Heitmueller
2009-11-18 12:41           ` Laurent Pinchart
2009-11-18  9:42         ` Laurent Pinchart
2009-11-18  9:55           ` Devin Heitmueller
2009-11-18  9:38       ` Laurent Pinchart
2009-11-18  9:32     ` Laurent Pinchart
2009-11-18  0:38 ` v4l: Use video_device_node_name() instead of the minor number Laurent Pinchart
2009-11-18  0:38 ` v4l: Remove unneeded video_device::minor assignments Laurent Pinchart
2009-11-18  0:38 ` v4l: Remove unneeded video_device::minor usage in drivers Laurent Pinchart
2009-11-18  1:31 ` [PATCH/RFC] V4L core cleanups Aguirre, Sergio
2009-11-18 12:57   ` Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1258504731-8430-6-git-send-email-laurent.pinchart@ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=sakari.ailus@maxwell.research.nokia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.