From patchwork Sun May 6 14:19:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10382823 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 3DC536053A for ; Sun, 6 May 2018 14:20:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C7762892B for ; Sun, 6 May 2018 14:20:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2178528BF2; Sun, 6 May 2018 14:20:30 +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 9962728B87 for ; Sun, 6 May 2018 14:20:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751444AbeEFOU1 (ORCPT ); Sun, 6 May 2018 10:20:27 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:43508 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751822AbeEFOU0 (ORCPT ); Sun, 6 May 2018 10:20:26 -0400 Received: by mail-pf0-f196.google.com with SMTP id j20so6513188pff.10; Sun, 06 May 2018 07:20:25 -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=jApxEqv0RUbN0MeNQFGpU03NN6zz01KEBEDDO1yeL8Q=; b=UxGThgsnSrMMOhb/vBUZzfXBd03PFHecl+So4RKKyxHb+BAMwX7dkxPvt/iY/r6hfQ mFaPSUYm4cxI6VsVH1ulpSgZB9P7IzKhXwGtqKjPZsrWP4I2i8/Vzo1vOGiYNJjj1EqW VJZzQPtM3qF71kEECFjJeivTo+aSbmBxEPz7ULERFEt8WfzbehMaPvco3oMmEk3Lsg/s KmpPqOqb0Jre+UuNcWWNmQeyGknNpq14FUKjGglP071k69yX/N22VgZSRx5nNmRsOri5 ClSvT3/M+qmjE9MbDbjvPMl2El3IpqqzUC2hTe505jaQMlHddxtXMLUpfgoMuFAeT79U MrPA== 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=jApxEqv0RUbN0MeNQFGpU03NN6zz01KEBEDDO1yeL8Q=; b=ZCrUXEcldESZ4LNrYKG0IOU5QreyW8evFO3QWc3xqE26qu7hSTE1xITFTUsPUuZ3g/ rOq3OIAfIGgZ8GcIOZ1Cw1ElObINgQXtOe7zHaKEcQ1eAusivi7s8fLDGAKFx5KYvn/6 zYdJfOBh9/vrAmtQut4Tkf/E2aFlKPGyQ7diqSlEyWF7ZbM8XsGKch3nQd84lbs+o4j+ m8ca/2CRlC7251SVbDYAMVkZnq8GlgVrrD0860R4wIgE7rMfMkatENSnicfkNl/uxcLT qd+sc0npZFAN8PXnQXDM9HXoxnDVtFCS+BOLVJH4WJvea9vYvFoqWglXhr2idyGasSXg Wl6w== X-Gm-Message-State: ALQs6tB6rlczpfQHbcnfb2NdDiK8Qm6wfvbuUDWcvZbLh1g/lxt5z/E9 xE7rCTWNg9OMy+vK2gwxOBrk/Q== X-Google-Smtp-Source: AB8JxZo0O+b2dVohPC4oxqNuaPcYxwT3AcO9pt+V6eh+Mj9ns2+STTMuSaTqw9KvlUvgNEH1MpLGWg== X-Received: by 10.98.214.218 with SMTP id a87mr33773253pfl.200.1525616425535; Sun, 06 May 2018 07:20:25 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:141a:15e1:5268:11ce]) by smtp.gmail.com with ESMTPSA id s88sm58766771pfe.43.2018.05.06.07.20.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 May 2018 07:20:24 -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 v5 14/14] media: ov772x: create subdevice device node Date: Sun, 6 May 2018 23:19:29 +0900 Message-Id: <1525616369-8843-15-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525616369-8843-1-git-send-email-akinobu.mita@gmail.com> References: <1525616369-8843-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 Reviewed-by: Jacopo Mondi --- * v5 - 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 4b479f9..f7f4fe6 100644 --- a/drivers/media/i2c/ov772x.c +++ b/drivers/media/i2c/ov772x.c @@ -1409,6 +1409,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;