From patchwork Sat Jan 16 17:08:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOpbWV0aCBNw6FydG9u?= X-Patchwork-Id: 2470 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sat, 16 Jan 2010 17:08:50 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for (single-drop); Sat, 16 Jan 2010 19:43:26 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NWC8o-0001GO-Ca; Sat, 16 Jan 2010 17:08:50 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752573Ab0APRIs (ORCPT + 1 other); Sat, 16 Jan 2010 12:08:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753255Ab0APRIs (ORCPT ); Sat, 16 Jan 2010 12:08:48 -0500 Received: from mail01d.mail.t-online.hu ([84.2.42.6]:49322 "EHLO mail01d.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752361Ab0APRIr (ORCPT ); Sat, 16 Jan 2010 12:08:47 -0500 Received: from [192.168.1.64] (dsl5402C406.pool.t-online.hu [84.2.196.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01d.mail.t-online.hu (Postfix) with ESMTPSA id 290227586A1; Sat, 16 Jan 2010 18:06:20 +0100 (CET) Message-ID: <4B51F297.7020405@freemail.hu> Date: Sat, 16 Jan 2010 18:08:39 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: Mike Bernson , Serguei Miridonov , Ronald Bultje CC: V4L Mailing List Subject: [PATCH] bt819: cleanup v4l2_subdev_notify() parameters X-DCC-mail.t-online.hu-Metrics: mail01d.mail.t-online.hu 32721; Body=4 Fuz1=4 Fuz2=4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Márton Németh The 3rd parameter v4l2_subdev_notify() is passed to the notify() callback which is a pointer, see and . This will remove the following sparse warning (see "make C=1"): * Using plain integer as NULL pointer Signed-off-by: Márton Németh --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r 5bcdcc072b6d linux/drivers/media/video/bt819.c --- a/linux/drivers/media/video/bt819.c Sat Jan 16 07:25:43 2010 +0100 +++ b/linux/drivers/media/video/bt819.c Sat Jan 16 18:04:27 2010 +0100 @@ -260,7 +260,7 @@ v4l2_err(sd, "no notify found!\n"); if (std & V4L2_STD_NTSC) { - v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, 0); + v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, NULL); bt819_setbit(decoder, 0x01, 0, 1); bt819_setbit(decoder, 0x01, 1, 0); bt819_setbit(decoder, 0x01, 5, 0); @@ -269,7 +269,7 @@ /* bt819_setbit(decoder, 0x1a, 5, 1); */ timing = &timing_data[1]; } else if (std & V4L2_STD_PAL) { - v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, 0); + v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, NULL); bt819_setbit(decoder, 0x01, 0, 1); bt819_setbit(decoder, 0x01, 1, 1); bt819_setbit(decoder, 0x01, 5, 1); @@ -294,7 +294,7 @@ bt819_write(decoder, 0x08, (timing->hscale >> 8) & 0xff); bt819_write(decoder, 0x09, timing->hscale & 0xff); decoder->norm = std; - v4l2_subdev_notify(sd, BT819_FIFO_RESET_HIGH, 0); + v4l2_subdev_notify(sd, BT819_FIFO_RESET_HIGH, NULL); return 0; } @@ -312,7 +312,7 @@ v4l2_err(sd, "no notify found!\n"); if (decoder->input != input) { - v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, 0); + v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, NULL); decoder->input = input; /* select mode */ if (decoder->input == 0) { @@ -322,7 +322,7 @@ bt819_setbit(decoder, 0x0b, 6, 1); bt819_setbit(decoder, 0x1a, 1, 0); } - v4l2_subdev_notify(sd, BT819_FIFO_RESET_HIGH, 0); + v4l2_subdev_notify(sd, BT819_FIFO_RESET_HIGH, NULL); } return 0; }