From patchwork Fri Jan 7 16:00:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 464401 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p07G0M8l017762 for ; Fri, 7 Jan 2011 16:00:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754243Ab1AGQAP (ORCPT ); Fri, 7 Jan 2011 11:00:15 -0500 Received: from perceval.ideasonboard.com ([95.142.166.194]:49390 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752065Ab1AGQAB (ORCPT ); Fri, 7 Jan 2011 11:00:01 -0500 Received: from localhost.localdomain (unknown [91.178.6.203]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D355635C9E; Fri, 7 Jan 2011 15:59:59 +0000 (UTC) From: Laurent Pinchart To: linux-media@vger.kernel.org Subject: [PATCH 2/5] uvcvideo: Deprecate UVCIOC_CTRL_{ADD,MAP_OLD,GET,SET} Date: Fri, 7 Jan 2011 17:00:37 +0100 Message-Id: <1294416040-28371-3-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.2.2 In-Reply-To: <1294416040-28371-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1294416040-28371-1-git-send-email-laurent.pinchart@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 07 Jan 2011 16:00:22 +0000 (UTC) diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index f2742e1..0251dff 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt @@ -566,3 +566,26 @@ Why: This field is deprecated. I2C device drivers shouldn't change their Who: Jean Delvare ---------------------------- + +What: Support for UVCIOC_CTRL_ADD in the uvcvideo driver +When: 2.6.39 +Why: The information passed to the driver by this ioctl is now queried + dynamically from the device. +Who: Laurent Pinchart + +---------------------------- + +What: Support for UVCIOC_CTRL_MAP_OLD in the uvcvideo driver +When: 2.6.39 +Why: Used only by applications compiled against older driver versions. + Superseded by UVCIOC_CTRL_MAP which supports V4L2 menu controls. +Who: Laurent Pinchart + +---------------------------- + +What: Support for UVCIOC_CTRL_GET and UVCIOC_CTRL_SET in the uvcvideo driver +When: 2.6.39 +Why: Superseded by the UVCIOC_CTRL_QUERY ioctl. +Who: Laurent Pinchart + +---------------------------- diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 7432336..c03046a 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c @@ -1020,10 +1020,20 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) /* Dynamic controls. */ case UVCIOC_CTRL_ADD: + uvc_printk(KERN_INFO, "Deprecated UVCIOC_CTRL_ADD ioctl " + "will be removed in 2.6.39.\n"); + uvc_printk(KERN_INFO, "See http://www.ideasonboard.org/uvc/ " + "for upgrade instructions.\n"); + /* Legacy ioctl, kept for API compatibility reasons */ return -EEXIST; case UVCIOC_CTRL_MAP_OLD: + uvc_printk(KERN_INFO, "Deprecated UVCIOC_CTRL_MAP_OLD ioctl " + "will be removed in 2.6.39.\n"); + uvc_printk(KERN_INFO, "See http://www.ideasonboard.org/uvc/" + "for upgrade instructions.\n"); + case UVCIOC_CTRL_MAP: return uvc_ioctl_ctrl_map(chain, arg, cmd == UVCIOC_CTRL_MAP_OLD); @@ -1041,6 +1051,10 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) .data = xctrl->data, }; + uvc_printk(KERN_INFO, "Deprecated UVCIOC_CTRL_[GS]ET ioctls " + "will be removed in 2.6.39.\n"); + uvc_printk(KERN_INFO, "See http://www.ideasonboard.org/uvc/ " + "for upgrade instructions.\n"); return uvc_xu_ctrl_query(chain, &xqry); }