From patchwork Wed Jan 3 18:22:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10142775 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B96FA6035E for ; Wed, 3 Jan 2018 18:23:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2AF729188 for ; Wed, 3 Jan 2018 18:23:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5B03291AC; Wed, 3 Jan 2018 18:23:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4948D29188 for ; Wed, 3 Jan 2018 18:23:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750857AbeACSXZ (ORCPT ); Wed, 3 Jan 2018 13:23:25 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:41474 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750753AbeACSXY (ORCPT ); Wed, 3 Jan 2018 13:23:24 -0500 Received: by mail-pg0-f67.google.com with SMTP id 77so984631pgd.8 for ; Wed, 03 Jan 2018 10:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R6lHr2T5ipPZzHyFuWbgQEiD0e2QJW/oFn8JGm5Bygg=; b=pf8Fj4eV0XPCaoHKUPT0Xpf2Bcw+bQN2R2BqeuIrFtH3wGNOh+uAoMcj8aPmdt6Ky5 1GR6CN7bhkjdgzUbqWiT/vWaBKNPpKYK4lITlhbJYJzStM6iLg8E8dDkGC/nBYRFok4M f9MeZqDL/XP9RJdZ3xLNU8zLVUNU9woA2zswkkbHEhkujOQRIfU+qFFGoSR6hu7nYZd/ cNJW0MnobAPiLRP0mGeSdTUa5HwkBEXqPYaktnq5jWnC7eqwBCZ3lRmUkBK5NpYQs8ty FUDuFe9i1+2yRAf7wDr6t0LtUPec6swNmq7NzLDbHIbKctac38YBWkcu1xLOJflAsT7z p/3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=R6lHr2T5ipPZzHyFuWbgQEiD0e2QJW/oFn8JGm5Bygg=; b=YsO8yp7v/ykQPajuLdkR2urVxzoNPPuYfHZcwK8PTucwIAEnOrzqqQoSHtnwYhwcrX FOgRTEnWewQbGR3twLiU/IHNu14fsFW5IfsbPwHrTfweVg8lpY1psfArQP/bd3Xag/Kt RsreNbb3UILDJrHPG/p2o4tshmK4WlxG8jHKnqm0LX0ORNuHbkptHVgF/dtUI53KgzyO w2gKUWj7wvMnI+yr/Y/zEiUoBFgRz/vDhY0xFPyM/7EVGmMnDU4yO0AQ+xSun+PNgi7F dF4LxQbfuGt4Z3BftLbxDWshB163kyubExRUaocW9fmR7NdKX1esq2MkFAlcuE1ZJKtL G6XA== X-Gm-Message-State: AKGB3mKZXdbPwU78YgTUztmPZUgwLiGuGb6c6WrfctZB8I7VkNXfywLR 7pfGPgEqrGN+HqYaJHGZAGLnDw== X-Google-Smtp-Source: ACJfBouasxWNosdwBNBIZOcAg5IwdmQa8mBV9omci3T0+GKLC1RTH6FpWzU4HNnCB0hgtd1t0USiZw== X-Received: by 10.101.97.178 with SMTP id i18mr1937116pgv.408.1515003803794; Wed, 03 Jan 2018 10:23:23 -0800 (PST) Received: from localhost.localdomain ([240f:4:c2bc:1:609a:ff0a:6b9e:a233]) by smtp.gmail.com with ESMTPSA id s81sm4276325pfg.60.2018.01.03.10.23.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jan 2018 10:23:23 -0800 (PST) From: Akinobu Mita To: linux-media@vger.kernel.org Cc: Akinobu Mita , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH v2 1/4] media: mt9m111: create subdevice device node Date: Thu, 4 Jan 2018 03:22:44 +0900 Message-Id: <1515003767-12006-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515003767-12006-1-git-send-email-akinobu.mita@gmail.com> References: <1515003767-12006-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Set the V4L2_SUBDEV_FL_HAS_DEVNODE flag for the subdevice so that the subdevice device node is created. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- * Changelog v2 - Fix typo s/meida/media/ in the patch title, noticed by Sakari Ailus drivers/media/i2c/mt9m111.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c index b1665d9..4fa10df 100644 --- a/drivers/media/i2c/mt9m111.c +++ b/drivers/media/i2c/mt9m111.c @@ -951,6 +951,8 @@ static int mt9m111_probe(struct i2c_client *client, mt9m111->ctx = &context_b; v4l2_i2c_subdev_init(&mt9m111->subdev, client, &mt9m111_subdev_ops); + mt9m111->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; + v4l2_ctrl_handler_init(&mt9m111->hdl, 5); v4l2_ctrl_new_std(&mt9m111->hdl, &mt9m111_ctrl_ops, V4L2_CID_VFLIP, 0, 1, 1, 0);