From patchwork Sun Apr 29 17:13:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10370629 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 C074360116 for ; Sun, 29 Apr 2018 17:14:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B067028A18 for ; Sun, 29 Apr 2018 17:14:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4F9128A25; Sun, 29 Apr 2018 17:14:18 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, 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 53DE628A18 for ; Sun, 29 Apr 2018 17:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753584AbeD2ROQ (ORCPT ); Sun, 29 Apr 2018 13:14:16 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33523 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754059AbeD2ROO (ORCPT ); Sun, 29 Apr 2018 13:14:14 -0400 Received: by mail-pf0-f195.google.com with SMTP id f15so5006306pfn.0; Sun, 29 Apr 2018 10:14:13 -0700 (PDT) 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=npdzueTNvDODOQCqlSFgrKTd0nm72O9YjE6S9QwQr+w=; b=LvW0EsgCgQzG41Pz43a4do2vmSpjI3thzyJriCHEx+IziONnXd8yItYFml+bFOOuVq AjZq2n5YutVHLvICnLCnLs16N+GLzWnKbA3sOClnQ76wEI4sqX/MYoolcTYwLUWr35Dj seY9rtk9lArOAAXurb4HV8fPraN1fXNrzJFyYXxWP7AU++bZprODEV7GsT9sOatkzsVb yzTzpcya5FmLFaJPImLiPxq91dODDM30BLM/5+ShmH9DAb4a0lM9Y+E2qDyZ/wrIKWwm GPdMVYnY8TMtsxhlTkRcLZVROotPQyRFYeIooW+F78xAQC2Bub2DYvNDKnYSjqI87shc lcJQ== 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=npdzueTNvDODOQCqlSFgrKTd0nm72O9YjE6S9QwQr+w=; b=nXsybkAAgxcTgyXMPHOBs9rPMhh7V/yV4SJhI7pgWOj7A3DETayKWk/2u0qMJQGF8+ 83Qq9Hh/ci6cEgLLVa/fBxb46AcGShL1Hy001hYuGJw+V6ve7xhpcE96eJTf9eS5A2VD Z1IrWKW3XdDvMQkaRNbr77qMBoK7Ex0JV4EJgjLiRQmintTkrWce+nxI2CSYaC3bpGMs pBsl2CJ38ugHZCz3zYa8bKc1sVVn/Chumpji/VfuF9Ul6m8ePNdqGIC9Y7tVwvZTXs3O OpoygtZvVzNStvRyzCsZnDdq32V4qelqr8714PWYhcEHBq1ZxEdJswpXgxi6s4gipvhl wFWQ== X-Gm-Message-State: ALQs6tBlJreMVdOFFfFfRiD2YpT89cQbo9ulDjr+ZvXYCUlNJI0S6gCK 43OP6fwxAPWt5nv6/cNk2mMhkw== X-Google-Smtp-Source: AB8JxZqFaMhuEz44kCoTx7wl6FgPvPo1P3MexZnB12lDFqd1N3xuWPgHf+C9TBqL+y3GYQtUjH/Nww== X-Received: by 2002:a63:ab45:: with SMTP id k5-v6mr5544514pgp.199.1525022053376; Sun, 29 Apr 2018 10:14:13 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:754e:5a21:c35f:52a1]) by smtp.gmail.com with ESMTPSA id e10sm10168022pfn.67.2018.04.29.10.14.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Apr 2018 10:14:12 -0700 (PDT) From: Akinobu Mita To: linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Akinobu Mita , Jacopo Mondi , Laurent Pinchart , Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH v4 14/14] media: ov772x: create subdevice device node Date: Mon, 30 Apr 2018 02:13:13 +0900 Message-Id: <1525021993-17789-15-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525021993-17789-1-git-send-email-akinobu.mita@gmail.com> References: <1525021993-17789-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: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- * v4 - No changes drivers/media/i2c/ov772x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c index f3c4f78..ec45eed 100644 --- a/drivers/media/i2c/ov772x.c +++ b/drivers/media/i2c/ov772x.c @@ -1403,6 +1403,7 @@ static int ov772x_probe(struct i2c_client *client, mutex_init(&priv->lock); v4l2_i2c_subdev_init(&priv->subdev, client, &ov772x_subdev_ops); + priv->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; v4l2_ctrl_handler_init(&priv->hdl, 3); /* Use our mutex for the controls */ priv->hdl.lock = &priv->lock;