From patchwork Sun Apr 22 15:56:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10355639 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 8A32460231 for ; Sun, 22 Apr 2018 15:57:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A36D2893D for ; Sun, 22 Apr 2018 15:57:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EFF52897A; Sun, 22 Apr 2018 15:57:16 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, URIBL_RHS_DOB 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 154132893D for ; Sun, 22 Apr 2018 15:57:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754505AbeDVP5O (ORCPT ); Sun, 22 Apr 2018 11:57:14 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:42457 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754448AbeDVP5J (ORCPT ); Sun, 22 Apr 2018 11:57:09 -0400 Received: by mail-pf0-f196.google.com with SMTP id o16so7211717pfk.9; Sun, 22 Apr 2018 08:57:08 -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=rLuVFFyV+vgA0MEn/AOj4e/YJK5Yo9WKuGlu3eMizwM=; b=rOQ0YbbrXY2VMhZ0rQop9GNXKkabxZyRIgsmitA1F9liLemOl1+jMPJNexhHH67gmv aXWZ3YT0rfPrzlfZ4CJykU2VUR35beIK4nHKR8qq3WLijMwkYrmPW/6keTg4u76ibytq Zv7pYkrUyGN8NrbhY/7HIdGjS8yDtuLgsBKnmra6yBR9ViJBA8e/335O1nESbD4MqM04 PZ0j6BL3w5Jl2IfF15fT62/pF/5l4HlVbn5iJs7tRZZL7yuBw6OSZNo5s6uxDu5ReKQJ Fcwcv1qrDhdMmhNjPpVIPpx6aOTsQKOlW7T4ewaIrGW3AiJZf66Mj9htzyyCx7ouwQWu XDdg== 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=rLuVFFyV+vgA0MEn/AOj4e/YJK5Yo9WKuGlu3eMizwM=; b=FWbjEbTuCQyGjhSv8n3GN0uZqcgzW+ys2h0gPCM0fVTMqKc778eC1Hc2Xv1NJYjtW1 auGYFIcSzQnv/NnettdF6d9/wJYhHR9EOKX0kmxpKWifXPzZHjAcvVgipFk3TyQQvCZN xKi9EDT+Qm8NZNKJvv/aDGOMO588+20kUBUysxKm1b9rXIgxte2RcDcewCtFAglm+Tmh ab3surLjXtC6fLkldH6L0c8bUy45YY8FCvBlpAlmulow14aGWZ7R8rgxVTTXciRvyUG1 427MuIQOoV1WoSjHdw+7SzrC36iN6i8e1ZHgHEFWOYRmZRenuYvNDDo6uwgQOCtfurvg k9Ag== X-Gm-Message-State: ALQs6tCF8Zy7xAtga1SrWb/sgHO/Dj7ihw9Kbwm49rHAOdjYCBI60On+ dL+yQQMz0mgrTovrbl4e2SVxug== X-Google-Smtp-Source: AIpwx48jPy2/Fysgg/edAvCplwU09Tc1VPgmo5IM58GkdtZ+dSp+ZrIFlzzkqcs2pfdaftQiRzPk8A== X-Received: by 10.98.198.195 with SMTP id x64mr16830297pfk.11.1524412628602; Sun, 22 Apr 2018 08:57:08 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:a9a1:96f3:29de:6e47]) by smtp.gmail.com with ESMTPSA id y29sm255461pff.42.2018.04.22.08.57.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Apr 2018 08:57:08 -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 v3 11/11] media: ov772x: create subdevice device node Date: Mon, 23 Apr 2018 00:56:17 +0900 Message-Id: <1524412577-14419-12-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524412577-14419-1-git-send-email-akinobu.mita@gmail.com> References: <1524412577-14419-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 --- * v3 - 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 c9fdc67..a41c9d3 100644 --- a/drivers/media/i2c/ov772x.c +++ b/drivers/media/i2c/ov772x.c @@ -1404,6 +1404,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;