From patchwork Wed May 13 19:56:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 23595 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4DJuTmr009139 for ; Wed, 13 May 2009 19:56:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751113AbZEMT40 (ORCPT ); Wed, 13 May 2009 15:56:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753350AbZEMT40 (ORCPT ); Wed, 13 May 2009 15:56:26 -0400 Received: from zone0.gcu-squad.org ([212.85.147.21]:37048 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113AbZEMT40 (ORCPT ); Wed, 13 May 2009 15:56:26 -0400 Received: from jdelvare.pck.nerim.net ([62.212.121.182] helo=hyperion.delvare) by services.gcu-squad.org (GCU Mailer Daemon) with esmtpsa id 1M4Lew-0007P4-WC (TLSv1:AES256-SHA:256) (envelope-from ) ; Wed, 13 May 2009 23:06:39 +0200 Date: Wed, 13 May 2009 21:56:20 +0200 From: Jean Delvare To: LMML Cc: Mauro Carvalho Chehab , Andy Walls , Hans Verkuil , Mike Isely Subject: [PATCH 8/8] pvrusb2: Instantiate ir_video I2C device by default Message-ID: <20090513215620.4b6b359a@hyperion.delvare> In-Reply-To: <20090513214559.0f009231@hyperion.delvare> References: <20090513214559.0f009231@hyperion.delvare> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.14.4; x86_64-suse-linux-gnu) Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Now that the ir-kbd-i2c driver has been converted to a new-style i2c driver, we can instantiate the ir_video I2C device by default. The pvr2_disable_ir_video is kept to disable the IR receiver, either because the user doesn't use it, or for debugging purpose. Signed-off-by: Jean Delvare Cc: Mike Isely Acked-by: Mike Isely --- linux/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- v4l-dvb.orig/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c 2009-05-13 18:05:54.000000000 +0200 +++ v4l-dvb/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c 2009-05-13 18:06:32.000000000 +0200 @@ -43,7 +43,7 @@ static int ir_mode[PVR_NUM] = { [0 ... P module_param_array(ir_mode, int, NULL, 0444); MODULE_PARM_DESC(ir_mode,"specify: 0=disable IR reception, 1=normal IR"); -static int pvr2_disable_ir_video = 1; +static int pvr2_disable_ir_video; module_param_named(disable_autoload_ir_video, pvr2_disable_ir_video, int, S_IRUGO|S_IWUSR); MODULE_PARM_DESC(disable_autoload_ir_video,