From patchwork Wed Jun 1 18:25:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 841352 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p51IQA7m029045 for ; Wed, 1 Jun 2011 18:26:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751753Ab1FAS0I (ORCPT ); Wed, 1 Jun 2011 14:26:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24685 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751355Ab1FAS0H convert rfc822-to-8bit (ORCPT ); Wed, 1 Jun 2011 14:26:07 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p51IQ7At000672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Jun 2011 14:26:07 -0400 Received: from pedra (vpn2-11-228.ams2.redhat.com [10.36.11.228]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p51IQ5wi020552 for ; Wed, 1 Jun 2011 14:26:06 -0400 Date: Wed, 1 Jun 2011 15:25:08 -0300 From: Mauro Carvalho Chehab Cc: Linux Media Mailing List Subject: [PATCH 2/2] [media] soc_camera: preserve const attribute Message-ID: <20110601152508.2ed9710b@pedra> In-Reply-To: <76df01eacd5fa41b607426a8cb091fb21ae35554.1306951494.git.mchehab@redhat.com> References: <76df01eacd5fa41b607426a8cb091fb21ae35554.1306951494.git.mchehab@redhat.com> Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 To: unlisted-recipients:; (no To-header on input) 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 (demeter2.kernel.org [140.211.167.43]); Wed, 01 Jun 2011 18:26:11 +0000 (UTC) drivers/media/video/soc_camera.c: In function ‘soc_camera_video_start’: drivers/media/video/soc_camera.c:1515: warning: initialization discards qualifiers from pointer target type Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 3988643..4e4d412 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c @@ -1512,7 +1512,7 @@ static int video_dev_create(struct soc_camera_device *icd) */ static int soc_camera_video_start(struct soc_camera_device *icd) { - struct device_type *type = icd->vdev->dev.type; + const struct device_type *type = icd->vdev->dev.type; int ret; if (!icd->dev.parent)