Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13474038ybl; Sun, 29 Dec 2019 12:46:32 -0800 (PST) X-Google-Smtp-Source: APXvYqz7YyOtpoy4VD/msgQ9r3Crvc8TyeE3/rGlrc4IH4enQRNSbGMqGW+cu04B/aovnbLbfxC3 X-Received: by 2002:a9d:6b06:: with SMTP id g6mr61477246otp.93.1577652392691; Sun, 29 Dec 2019 12:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652392; cv=none; d=google.com; s=arc-20160816; b=ian4Y50w8UpAR1XeQGi5DSVUVuEWpRqyh3gGOK1ZXIdzwOfgwNhz3jBgQqMrNrwkge 6OSp4P2FroTM9yvvxA8l3BTXGBCJ9lPP7b3yZrZBQ3LXid/p1hLs5rbc67pvHaKJ2GqY NzKgkQDc3YU18qGRAqOeborLXUitmq6rs/cfMS9xThYeLTiqtvJcKmuI9hgTFjjX2D7g 7ZTp7OnaDrMQhgdxuiNrtZtq18eE1QJxjiDeGvkgchz7GtX/0g2+sn4lpiLond5amzVw iG6V4hi8h7ZcNjMNPrVcuQ9DCuz8XU5eT98/27zfOr/ZnlHTqIxW2qa1XwPZ62/QaV5n G/Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=itE10NUlM12xIDFkkMN+Im7sjCQfDXPVkxrOBW5BJNE=; b=F4hAF2R933P9HI8iq4c0GxIkJB8pKcBhb7UsiZ3fa5LP7X92gs/096jVtenPI4IdVM D0GvKzPbw4uf0kOWDJO9rGwi72FA8F/yhvoElcD6sMmP5AmEAw6s42wk9w9SafEOhT4N I8qh9Vo5GR3pb0UZYIOJbn17WRFe6VRyXmWTcntu81azFemQXe78HsoxKTsVJd1wGmk0 Ld2PJVKS4QPY2HJmNUoY76mEodJJM54D35IOtLy5M6p8WsHPDEPnfHzknKT+oYE5L2xt ZHr0RO26faoIgB2ytATVYpHSaH3SKDgYtYu/utGcNOrvWPErZLHszTIhhKVxEqbHcO/c 6lYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YDUsUUW2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si19573526otj.260.2019.12.29.12.46.21; Sun, 29 Dec 2019 12:46:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YDUsUUW2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731473AbfL2Rsb (ORCPT + 99 others); Sun, 29 Dec 2019 12:48:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:59778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727238AbfL2Rs3 (ORCPT ); Sun, 29 Dec 2019 12:48:29 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2FE57206DB; Sun, 29 Dec 2019 17:48:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641708; bh=hlMo9Vcth0ZJuThRx5iZu8uM6IQ1F5KDDRqAfx2LPQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YDUsUUW2lQ55ueDOOULG9I9gmfgxp+kzvvr4W7rwPPegmUI6cSXi2H6exk/nakveP JWXgiVAIWmaN3rdyHSCaARM2YvQ5nPmt4r1WDsnnUZG7YlcbLo45YXcCNcQ6+yLEOP IOiyJwDa6JPrLfFVH4ym+6z32ro8dG41utnJIpFU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ricardo Ribalda Delgado , Pavel Machek , Laurent Pinchart , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 177/434] media: ad5820: Define entity function Date: Sun, 29 Dec 2019 18:23:50 +0100 Message-Id: <20191229172713.568820265@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ricardo Ribalda Delgado [ Upstream commit 801ef7c4919efba6b96b5aed1e72844ca69e26d3 ] Without this patch, media_device_register_entity throws a warning: dev_warn(mdev->dev, "Entity type for entity %s was not initialized!\n", entity->name); Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/ad5820.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c index 925c171e7797..7a49651f4d1f 100644 --- a/drivers/media/i2c/ad5820.c +++ b/drivers/media/i2c/ad5820.c @@ -309,6 +309,7 @@ static int ad5820_probe(struct i2c_client *client, v4l2_i2c_subdev_init(&coil->subdev, client, &ad5820_ops); coil->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; coil->subdev.internal_ops = &ad5820_internal_ops; + coil->subdev.entity.function = MEDIA_ENT_F_LENS; strscpy(coil->subdev.name, "ad5820 focus", sizeof(coil->subdev.name)); ret = media_entity_pads_init(&coil->subdev.entity, 0, NULL); -- 2.20.1