From patchwork Thu Oct 12 16:21:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10002303 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 6038460216 for ; Thu, 12 Oct 2017 16:21:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FCB928E3A for ; Thu, 12 Oct 2017 16:21:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43FB828E3B; Thu, 12 Oct 2017 16:21:44 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 C373228E2F for ; Thu, 12 Oct 2017 16:21:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752767AbdJLQVm (ORCPT ); Thu, 12 Oct 2017 12:21:42 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:46482 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751600AbdJLQVm (ORCPT ); Thu, 12 Oct 2017 12:21:42 -0400 Received: by mail-pf0-f196.google.com with SMTP id p87so5542838pfj.3 for ; Thu, 12 Oct 2017 09:21:41 -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=cmTcSFgu13lyVa0v30lk+y6LhSe6QPSeWAsUTmsrqRI=; b=KT1Uc53o8TInPC9OLsDFrLkO/WMkU45OK1QznaQjGSGwM2vGqYjxl8znvzZGOn0jHe 1kyVA7yzuhYmN7ETO65EO1YJMRouUm2r73rSQejVmrQZOuepo9EbQlpqZ68441HS+06z 126XXcIpbtIxoRpHNHmlKlFxG75bJjHUmHqol52f1Q0RFcfYg1USYs8qZSUMIk2i5L4t cfDVYDJNitkrjzP2gl9GzyvaSam7k1eL6epdjEvKAQBCLSTPJrOXdIzhkudxwmGY3BXD +14XflTsQDw9CyIohqKwwmL2U7tdAkB9nij37mlZ2DZoOooOLHP2twkWnCdWHZm7CIso 1IQA== 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=cmTcSFgu13lyVa0v30lk+y6LhSe6QPSeWAsUTmsrqRI=; b=PCkQ2TUKHbKjyXOz2TzpS7kVsDUQmwwj8Wi4KWikRwNMHfV83b95bdV3Jfjmn1c+v1 4jVTdPWrSChFW/sW50Ftl2gSpE+s7M4Q0KyobYSw42TBGY2qNLvUg2/EKzvJEOp+hPvL Stc5Ijiwx4UZJUvlPv1Yy51vjxfI/TaCP5H3NweWfaopD57nZ27OnuozblhSLBIgajRm ndq1elspREOwNFadqiCvveRDmq7ifbP1wGrcaLezoxgb4qVt7pTrpMrHln98+V+s5MwP BekSGUSsJhBVZWwe/TVnwkC2/zVsxMvhiomZyDSSzjuM5BR19MTpEXwHmAff11EfIx22 a+Xw== X-Gm-Message-State: AMCzsaV4NZaNSvxd3csVw47YYo5Pm87VVYNrYDc9IWFeh8dhjzAiZb1I jmlkYWlfuEShPvhQ3IKUL+ksTA== X-Google-Smtp-Source: AOwi7QBvco6DAtWydn4Hm7Rd0kdHBuMStamGlXG5pixYEy3GfgYjznyitIuRtQ5p6rXGR6s502pXnA== X-Received: by 10.99.178.15 with SMTP id x15mr651408pge.243.1507825301549; Thu, 12 Oct 2017 09:21:41 -0700 (PDT) Received: from mita-ThinkPad-T540p.lan ([240f:4:c2bc:1:ec18:f5a1:1d8f:bb9f]) by smtp.gmail.com with ESMTPSA id x11sm27404438pgq.29.2017.10.12.09.21.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Oct 2017 09:21:41 -0700 (PDT) From: Akinobu Mita To: linux-media@vger.kernel.org Cc: Akinobu Mita , Jonathan Corbet , Mauro Carvalho Chehab Subject: [PATCH 1/4] media: ov7670: create subdevice device node Date: Fri, 13 Oct 2017 01:21:14 +0900 Message-Id: <1507825277-18364-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507825277-18364-1-git-send-email-akinobu.mita@gmail.com> References: <1507825277-18364-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 it is possible to create a subdevice device node. Cc: Jonathan Corbet Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/ov7670.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index e88549f..d3f7d61 100644 --- a/drivers/media/i2c/ov7670.c +++ b/drivers/media/i2c/ov7670.c @@ -1585,6 +1585,7 @@ static int ov7670_probe(struct i2c_client *client, return -ENOMEM; sd = &info->sd; v4l2_i2c_subdev_init(sd, client, &ov7670_ops); + sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; info->clock_speed = 30; /* default: a guess */ if (client->dev.platform_data) {