From patchwork Mon Apr 16 02:51: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: 10342063 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 9B423601D3 for ; Mon, 16 Apr 2018 02:52:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88CF5223B2 for ; Mon, 16 Apr 2018 02:52:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D6E024B48; Mon, 16 Apr 2018 02:52: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=-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 259BD223B2 for ; Mon, 16 Apr 2018 02:52:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbeDPCwX (ORCPT ); Sun, 15 Apr 2018 22:52:23 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:46562 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752630AbeDPCwV (ORCPT ); Sun, 15 Apr 2018 22:52:21 -0400 Received: by mail-pl0-f65.google.com with SMTP id 59-v6so9177525plc.13; Sun, 15 Apr 2018 19:52:21 -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=aUMyUfps81KBfMhA/rv8m+0QcifwXmLRwVj5QkBXxbA=; b=mbN4uw5m0C9Oj9lrocYgi5zHWbzGz9HhPEsyqr7mB9gQSF07msqzKHShJFGQWr2mLw nmh6zkhWFxBVKa/BXqn7MXWddslC0E1rKqshMyw+/qua+yA2Ifj1fn+AGJxd5MI2uoHu Wz94B028Wscy2LKDynJPt/FApy3TkNJ6M8H6zsqGOPN4omYgc3X1aKVmQgaIv7K5y9Wd esKypAs3UQFgkhYN/gpFwQNhqH2aonK8Lt1axHb/OAFJrLdWAonGPEFMQ2eFqyv1Exqw hr9p0QvSg+dusKQyL4yp7u82+zjrcW/NDr7QEfoDzx8lBXa5Zhh2s2F9OmPJgMKH7d3j mIbg== 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=aUMyUfps81KBfMhA/rv8m+0QcifwXmLRwVj5QkBXxbA=; b=QGhTz52ZM+1bifXPVLsD3m//Pmsw8eiunGFuUEOfKeQHvtUFf3XdctHDyz9vbabbA1 VfZO0oo8XO9ljWydSsZ5D4DGKKwGGBgfN/VCdNw7Kf0th78fR204sFTobjcghhiHVVY2 B/oSVXNlbNxKoe2v5O2R8TXlSYU6MdafKi2RXfivF57wu3FyaNcoBhKQqvSiSyEBQFt1 PJQD7c8robzxRwuYR6AUUsrbsJNSn4/3tBkXfLZB5g5IUtYi6Pce+PteajKwjcdxNTEB ds0lwX6qs/DqiLJqUDJT+WubOnHSydsp4C9MPPhYO/J9R6IdJykgFUmkoVT6nUcAiD3k TnIw== X-Gm-Message-State: ALQs6tA3c4YYFLvJLHQ1PCTPjuCE2/vyd5MUgKSVdW80PSsvPZRlLxS+ 3ylHF18/UpvcwIXPneDwVmQaig== X-Google-Smtp-Source: AIpwx4/sIsAdlTybGZoNJyg9Hbyv7IT8mQeGWHou2PZh/zSDtktowngSDmWP54Vm3ZJSMX0qVyUZBA== X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr13529337plb.224.1523847141210; Sun, 15 Apr 2018 19:52:21 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:3df1:9c88:51ad:c027]) by smtp.gmail.com with ESMTPSA id e1sm3694274pgt.49.2018.04.15.19.52.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 Apr 2018 19:52:20 -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 v2 03/10] media: ov772x: create subdevice device node Date: Mon, 16 Apr 2018 11:51:44 +0900 Message-Id: <1523847111-12986-4-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523847111-12986-1-git-send-email-akinobu.mita@gmail.com> References: <1523847111-12986-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 --- * v2 - 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 8badd6f..188f2f1 100644 --- a/drivers/media/i2c/ov772x.c +++ b/drivers/media/i2c/ov772x.c @@ -1287,6 +1287,7 @@ static int ov772x_probe(struct i2c_client *client, priv->info = client->dev.platform_data; 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);