Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262166AbVATPit (ORCPT ); Thu, 20 Jan 2005 10:38:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262161AbVATPit (ORCPT ); Thu, 20 Jan 2005 10:38:49 -0500 Received: from hirsch.in-berlin.de ([192.109.42.6]:18852 "EHLO hirsch.in-berlin.de") by vger.kernel.org with ESMTP id S262162AbVATPaQ (ORCPT ); Thu, 20 Jan 2005 10:30:16 -0500 X-Envelope-From: kraxel@bytesex.org Date: Thu, 20 Jan 2005 16:27:45 +0100 From: Gerd Knorr To: Andrew Morton , Linux Kernel Mailing List Subject: [patch] v4l: bttv IR input driver update Message-ID: <20050120152745.GA13041@bytesex> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3319 Lines: 94 This patch enables IR support for one AverMedia card and drops a obsolete function. Signed-off-by: Gerd Knorr --- drivers/media/common/ir-common.c | 3 ++- drivers/media/video/ir-kbd-gpio.c | 4 ++-- drivers/media/video/ir-kbd-i2c.c | 14 ++------------ 3 files changed, 6 insertions(+), 15 deletions(-) Index: linux-2004-12-16/drivers/media/video/ir-kbd-gpio.c =================================================================== --- linux-2004-12-16.orig/drivers/media/video/ir-kbd-gpio.c 2004-12-17 12:09:03.000000000 +0100 +++ linux-2004-12-16/drivers/media/video/ir-kbd-gpio.c 2004-12-17 12:28:00.761810330 +0100 @@ -1,5 +1,5 @@ /* - * $Id: ir-kbd-gpio.c,v 1.10 2004/09/15 16:15:24 kraxel Exp $ + * $Id: ir-kbd-gpio.c,v 1.11 2004/10/25 11:26:36 kraxel Exp $ * * Copyright (c) 2003 Gerd Knorr * Copyright (c) 2003 Pavel Machek @@ -366,7 +366,7 @@ static int ir_probe(struct device *dev) break; case BTTV_AVDVBT_761: - /* case BTTV_AVDVBT_771: */ + case BTTV_AVDVBT_771: ir_codes = ir_codes_avermedia_dvbt; ir->mask_keycode = 0x0f00c0; ir->mask_keydown = 0x000020; Index: linux-2004-12-16/drivers/media/video/ir-kbd-i2c.c =================================================================== --- linux-2004-12-16.orig/drivers/media/video/ir-kbd-i2c.c 2004-12-17 12:06:32.000000000 +0100 +++ linux-2004-12-16/drivers/media/video/ir-kbd-i2c.c 2004-12-17 12:28:00.762810142 +0100 @@ -1,5 +1,5 @@ /* - * $Id: ir-kbd-i2c.c,v 1.8 2004/09/15 16:15:24 kraxel Exp $ + * $Id: ir-kbd-i2c.c,v 1.10 2004/12/09 12:51:35 kraxel Exp $ * * keyboard input driver for i2c IR remote controls * @@ -155,16 +155,6 @@ module_param(debug, int, 0644); /* de /* ----------------------------------------------------------------------- */ -static inline int reverse(int data, int bits) -{ - int i,c; - - for (c=0,i=0; i +#include #include -- #define printk(args...) fprintf(stderr, ## args) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/