From patchwork Thu Feb 21 11:54:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shaik Ameer Basha X-Patchwork-Id: 2171291 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 61133DF215 for ; Thu, 21 Feb 2013 11:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753394Ab3BULxt (ORCPT ); Thu, 21 Feb 2013 06:53:49 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:45389 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753090Ab3BULxs (ORCPT ); Thu, 21 Feb 2013 06:53:48 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MIK001TAJPMX1I0@mailout2.samsung.com> for linux-media@vger.kernel.org; Thu, 21 Feb 2013 20:53:46 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 78.76.05791.ACA06215; Thu, 21 Feb 2013 20:53:46 +0900 (KST) X-AuditID: cbfee690-b7f066d00000169f-dd-51260aca2d7c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1A.43.03918.ACA06215; Thu, 21 Feb 2013 20:53:46 +0900 (KST) Received: from shaik-linux.sisodomain.com ([107.108.207.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MIK00DQ4JNSPK40@mmp2.samsung.com> for linux-media@vger.kernel.org; Thu, 21 Feb 2013 20:53:46 +0900 (KST) From: Shaik Ameer Basha To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com Subject: [PATCH] [media] fimc-lite: Initialize 'step' field in fimc_lite_ctrl structure Date: Thu, 21 Feb 2013 17:24:18 +0530 Message-id: <1361447658-20793-2-git-send-email-shaik.ameer@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1361447658-20793-1-git-send-email-shaik.ameer@samsung.com> References: <1361447658-20793-1-git-send-email-shaik.ameer@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsWyRsSkWvcUl1qgwd65FhY9G7ayOjB6fN4k F8AYxWWTkpqTWZZapG+XwJWx8shL9oKN7BW3l79jbWBcyNbFyMEhIWAiseevbBcjJ5ApJnHh 3nqgMBeHkMBSRokz7ZcYIRImEhcmfmWFSExnlPj1+B0zhLOGSeL230OsIFVsAoYS2+9dAbNF BOQlnvTeYAOxmQWkJK5vXM0OYgsLREqcO7CbFWQzi4CqxJ3PkiBhXgF3iZn/XjJDHKQgMWeS DUiYU8BD4v/2V0wgthBQyaZP28HWSghcZpO4dmADWIJFQEDi2+RDLBC9shKbDjBD3CwpcXDF DZYJjMILGBlWMYqmFiQXFCelF5noFSfmFpfmpesl5+duYgSG3+l/zybsYLx3wPoQYzLQuInM UqLJ+cDwzSuJNzQ2MTc1NjUzsrS0NCVNWEmcV/6STKCQQHpiSWp2ampBalF8UWlOavEhRiYO TqkGxuKnCp4RT3fnXsm4fGTyzJTHvunlqR9Y/l87aieWksDW9P4Y8xK1QonTU2rPXDUVEjjP kDRx88tEXc9Af6VoobCee82J1Zd/ymj1TpornGUu0jojyltG9IHZ0kX7FaJm5xsG58o4bnry 2Uf2/2ynNIXq9xZfNpp0OdYXnNn2ov+yIe/uqgB7JZbijERDLeai4kQAZZ+sAlUCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAIsWRmVeSWpSXmKPExsVy+t9jQd1TXGqBBn3zDCx6NmxldWD0+LxJ LoAxqoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdo qpJCWWJOKVAoILG4WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsIYxY+WRl+wFG9krbi9/x9rA uJCti5GTQ0LAROLCxK+sELaYxIV764HiXBxCAtMZJX49fscM4axhkrj99xBYFZuAocT2e1fA bBEBeYknvTfAJjELSElc37iaHcQWFoiUOHdgN1ANBweLgKrEnc+SIGFeAXeJmf9eMoOEJQQU JOZMsgEJcwp4SPzf/ooJxBYCKtn0aTvzBEbeBYwMqxhFUwuSC4qT0nMN9YoTc4tL89L1kvNz NzGCw/uZ1A7GlQ0WhxgFOBiVeHgXvFQJFGJNLCuuzD3EKMHBrCTCa8OkFijEm5JYWZValB9f VJqTWnyIMRnoponMUqLJ+cDYyyuJNzQ2MTc1NrU0sTAxsyRNWEmcl/HUkwAhgfTEktTs1NSC 1CKYLUwcnFINjBrrbYuW9TG9SH5697z13yPrl2lGPC6fMIPLWFwi8dQhscORqfI2hdmNNp/j WHtYheJ0/uxefC/X1Z1Psiaa0VF0HkfQS/Fr3G37mSwFDvxi9Xc8ty78nvKe4uy2gI735ysm Bj0+rib0qfz/0td+qzzTl1ZUTJPm2VinfDrCc/qVVd0x25ZfVWIpzkg01GIuKk4EAOGtCpSz AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org v4l2_ctrl_new() uses check_range() for control range checking. This function expects 'step' value for V4L2_CTRL_TYPE_BOOLEAN type control. If 'step' value doesn't match to '1', it returns -ERANGE error. This patch adds the default .step value to 1. Signed-off-by: Shaik Ameer Basha --- drivers/media/platform/s5p-fimc/fimc-lite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/s5p-fimc/fimc-lite.c b/drivers/media/platform/s5p-fimc/fimc-lite.c index bfc4206..bbc35de 100644 --- a/drivers/media/platform/s5p-fimc/fimc-lite.c +++ b/drivers/media/platform/s5p-fimc/fimc-lite.c @@ -1408,6 +1408,7 @@ static const struct v4l2_ctrl_config fimc_lite_ctrl = { .id = V4L2_CTRL_CLASS_USER | 0x1001, .type = V4L2_CTRL_TYPE_BOOLEAN, .name = "Test Pattern 640x480", + .step = 1, }; static int fimc_lite_create_capture_subdev(struct fimc_lite *fimc)