From patchwork Sat Oct 13 11:18:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 1589041 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DAB7BE006E for ; Sat, 13 Oct 2012 11:23:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752927Ab2JMLXK (ORCPT ); Sat, 13 Oct 2012 07:23:10 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:51895 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752882Ab2JMLXI (ORCPT ); Sat, 13 Oct 2012 07:23:08 -0400 Received: by mail-pa0-f46.google.com with SMTP id hz1so3556620pad.19 for ; Sat, 13 Oct 2012 04:23:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=IZ4D9NPC/kO6ihGNfzyqWPY4p9GqhUtZKCRJIfDSzF0=; b=omf7utXtq+s5zdQfpOywzzjbJsV9Z5FJT54vKOQH/cJygrd3dGIHkw+kmuS7L569Xy EWcrqMO28xJ3y4fyPKK4yFR4LxTGFaQo8RA9L8kpfyLgzo0m/OE7xk2bi7BPvwR/u8YP oxL9W5+ghW82fEZ+Y/Gpgl00FN4iWc6iMiCkx8PGtrI06xJzNrE9rSkoqa6e7Oh8R8Ou NXCPj2axXkzSdGKA6nBJTQu4LXE4mzsSYE+H5mc5XxzZEotUbrTtpdDoNIur/BFeUT8M 5fToPunlKhJFyIN8p0DKQ8m/4ACHvySAi6DGRKAnx1WKkMoYtQIXN8mbDKCTVE5AV6kA Bz3A== Received: by 10.68.229.138 with SMTP id sq10mr21561317pbc.126.1350127387793; Sat, 13 Oct 2012 04:23:07 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id bf6sm403443pab.3.2012.10.13.04.23.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Oct 2012 04:23:03 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: k.debski@samsung.com, s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] [media] s5p-mfc: Fix compilation warning Date: Sat, 13 Oct 2012 16:48:34 +0530 Message-Id: <1350127114-5170-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmBxuMxowZgFP+RVWJVVztnUf+epPVmVZZ+ovyKJhD7oWdSaq4npfCeIvMpgn0DAWHob2DX Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Added missing const qualifier. Without this patch compiler gives the following warning: drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1576:2: warning: initialization from incompatible pointer type [enabled by default] drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1576:2: warning: (near initialization for ‘s5p_mfc_enc_ioctl_ops.vidioc_subscribe_event’) [enabled by default] Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c index 2af6d52..5c1d727 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c @@ -1542,7 +1542,7 @@ int vidioc_encoder_cmd(struct file *file, void *priv, } static int vidioc_subscribe_event(struct v4l2_fh *fh, - struct v4l2_event_subscription *sub) + const struct v4l2_event_subscription *sub) { switch (sub->type) { case V4L2_EVENT_EOS: