From patchwork Sat Apr 7 15:48:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10327891 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 B27E760541 for ; Sat, 7 Apr 2018 15:48:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A36AA2951C for ; Sat, 7 Apr 2018 15:48:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9809C29529; Sat, 7 Apr 2018 15:48:51 +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 4564B2951C for ; Sat, 7 Apr 2018 15:48:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751772AbeDGPss (ORCPT ); Sat, 7 Apr 2018 11:48:48 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36215 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751741AbeDGPss (ORCPT ); Sat, 7 Apr 2018 11:48:48 -0400 Received: by mail-pf0-f193.google.com with SMTP id g14so2871782pfh.3; Sat, 07 Apr 2018 08:48:47 -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=28jJguSE74KHKjfSQDNTe/SylAN9feLOINdVUYxG9Ao=; b=tP3pRKv1+jDUbxum/NZuWNd1qWMkyy+HgpXHomb5z7HkQ7NrnX+SqyyXyAFpKQDCT3 PA+ch+pn93ieIioSkPfV+obDkrGxjpRlOalHmkMbB9AjjMbGx8WhxFQ/wUhZCSf2vSrQ 2iCkoAblMT3YDIfvKVCZTco51cDiZ+xaPDYUk3jT4iWij6REuW6/+7QyGAcrD0SRsOBp Ja7I2xPnlMjxBNkLLPMNKmxtDR3Zg4+uMHdNsyMDUALtAE5eu/Dl0geWWRBhQenxwwfx mizasWW10ViumZpqa39h/nlJpkOr/MtJobGm0rxDCpPMuvEqr7o9hovbrHBREt9n48dh XdYg== 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=28jJguSE74KHKjfSQDNTe/SylAN9feLOINdVUYxG9Ao=; b=pTmALBkpex990z0U54O+m/BIyHXi8foHmrIV7g1WuTG2WEJeTXku1g8YOB06rL9X7d +wxbZuwnjri7ApBbZfGZTgKaRI8lt9np5078/nspFAqtnvJowu+hSmwiHtUvKqQpLvcp 9SlavjVJOuqxFpk5jZrJ2Nz1dCQebgwJA9JhmYO/Tobwl0cNmCJR3TNirO0/jCP/lpHD /EIs4aNE8rl0FnsxHUsetboVj8VJDQf056j/r5JrMbpiJF5erWI/Vw4u1KM7VnhKTzQd S2laVxF4V4pUAe4CzQCWeTqM2wDAc7j4LMMYpPWddlKv5bJWS3ft6PaFh5f2L+3M3eRv DYaQ== X-Gm-Message-State: AElRT7Hf7Q0JXywIAIjErBZbND2dUuxN5ZZ1wG3j02p0qCaFlW9b5zlS kZc0ZQN5FHMPWVz0duVwF3ytqw== X-Google-Smtp-Source: AIpwx4+SOm97mCac4LG3Wpt0qxiNKtIFSw5U/zwm+nuLupRYzfzF6qZyfXIaZK8cZzMG6qRWanG7QQ== X-Received: by 10.99.100.197 with SMTP id y188mr20301737pgb.277.1523116127524; Sat, 07 Apr 2018 08:48:47 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:3c69:7d24:eba0:888]) by smtp.gmail.com with ESMTPSA id x14sm23536871pgo.82.2018.04.07.08.48.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 Apr 2018 08:48:47 -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 3/6] media: ov772x: create subdevice device node Date: Sun, 8 Apr 2018 00:48:07 +0900 Message-Id: <1523116090-13101-4-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523116090-13101-1-git-send-email-akinobu.mita@gmail.com> References: <1523116090-13101-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 --- 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 c56f910..4bb81ff 100644 --- a/drivers/media/i2c/ov772x.c +++ b/drivers/media/i2c/ov772x.c @@ -1301,6 +1301,7 @@ static int ov772x_probe(struct i2c_client *client, client->flags |= I2C_CLIENT_SCCB; 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); v4l2_ctrl_new_std(&priv->hdl, &ov772x_ctrl_ops, V4L2_CID_VFLIP, 0, 1, 1, 0);