From patchwork Sun Jun 5 20:45:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 850232 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 p55KkdmH004709 for ; Sun, 5 Jun 2011 20:46:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755816Ab1FEUqF (ORCPT ); Sun, 5 Jun 2011 16:46:05 -0400 Received: from jacques.telenet-ops.be ([195.130.132.50]:36084 "EHLO jacques.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755380Ab1FEUqE (ORCPT ); Sun, 5 Jun 2011 16:46:04 -0400 Received: from ayla.of.borg ([84.193.80.148]) by jacques.telenet-ops.be with bizsmtp id sLm11g00R3C005g0JLm1ae; Sun, 05 Jun 2011 22:46:02 +0200 Received: from geert by ayla.of.borg with local (Exim 4.71) (envelope-from ) id 1QTKCv-0001qT-NN; Sun, 05 Jun 2011 22:46:01 +0200 From: Geert Uytterhoeven To: Mauro Carvalho Chehab , Guennadi Liakhovetski Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] media: soc_camera_video_start - type should be const Date: Sun, 5 Jun 2011 22:45:57 +0200 Message-Id: <1307306757-7068-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 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]); Sun, 05 Jun 2011 20:46:41 +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: Geert Uytterhoeven --- drivers/media/video/soc_camera.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)