From patchwork Wed Dec 20 16:33:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10125919 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 9C8B460388 for ; Wed, 20 Dec 2017 16:33:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FD7128A0F for ; Wed, 20 Dec 2017 16:33:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 840DA2917C; Wed, 20 Dec 2017 16:33:54 +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 2F4F228A0F for ; Wed, 20 Dec 2017 16:33:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754131AbdLTQdw (ORCPT ); Wed, 20 Dec 2017 11:33:52 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34326 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753433AbdLTQdw (ORCPT ); Wed, 20 Dec 2017 11:33:52 -0500 Received: by mail-pf0-f193.google.com with SMTP id a90so12782078pfk.1 for ; Wed, 20 Dec 2017 08:33:51 -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=2dzO2JtX8DO5aIR19FDkP421arOItWrf8xCAUMgqMUY=; b=R/XbMBaO0+60UR7/iRT73B6nOWEdaIc1n/cX6tNwPk5UEC5g40CDtrR4eHVKSoftE3 Zw6tb12JB75teJ2w8GLQYjEA6nAaagt5f12V2DSF1Hf0sCbPj+aLidg/egmAf/duuHDB GS059GrXNtiqiKJNM7H7tqjbUL0pvfVZXPSA5xAL5f56M9qMTuiiNvoMAm93SDsMsLoA fQYr7b1hTC0YoRQ4WnBOAis1PdrS3mgFT26YY1cUQ8G6UmwBX89oCqMW793ls7qjKTDX vISehGvBuH1T/m81fYn3wG2lJ+AdP/u2OTUuipLRf5XAy4gBfpV2gKOSGUazglQQ2Dju s2SA== 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=2dzO2JtX8DO5aIR19FDkP421arOItWrf8xCAUMgqMUY=; b=lC7viL8T2tIk6uteo1Vnsq/cthP23pvcyWb5EwDqwCpVrXA+8yPCQOOtK1F7Qczn9O IQ09obcgoMYA3O0PedO6lZfsjhpSOq9qUZFstVd6FyPGA9LRQqavXwiG2VFYhqCUchPQ j7jnC4IQD+Er9mbMAQOSbFkR6iwbHFCINDHpGdVl+skv98/D0n3fkR+8ZlNA8M+1Qen8 lVd/d2MUfQMWamFcvEhx4UULfMxJTPmsT7NyjdVCDo9G4qWlutPwkizfVyhy35W43GPU UnnK/EL4VDJuqB0oieEO8W4AlROFOboatQq9wtv3NJlIeuGCA8jLXwV6uWkgLTfnZlud E85g== X-Gm-Message-State: AKGB3mKot9EyOmF8dI8P4QlVKJMAXIqGr5DedRv8isq7h/OkyUeVFAGH SvJoWc5uTZn8s7Ui9fih5ZzF3A== X-Google-Smtp-Source: ACJfBovw8sHmTdULhhheXfc7PTiFpuYr69RZPN3Qfr8iSYt0UtJpcm0arYuhl06/WVVwHovzlzcmBg== X-Received: by 10.98.252.7 with SMTP id e7mr7481238pfh.12.1513787631191; Wed, 20 Dec 2017 08:33:51 -0800 (PST) Received: from localhost.localdomain ([240f:4:c2bc:1:6c87:ff94:43ae:eac3]) by smtp.gmail.com with ESMTPSA id m26sm30261286pgv.62.2017.12.20.08.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Dec 2017 08:33:50 -0800 (PST) From: Akinobu Mita To: linux-media@vger.kernel.org Cc: Akinobu Mita , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH 1/4] meida: mt9m111: create subdevice device node Date: Thu, 21 Dec 2017 01:33:31 +0900 Message-Id: <1513787614-12008-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513787614-12008-1-git-send-email-akinobu.mita@gmail.com> References: <1513787614-12008-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 --- 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);