From patchwork Fri Sep 27 07:18:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongchun Zhu X-Patchwork-Id: 58967 X-Patchwork-Delegate: sakari.ailus@iki.fi Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDkWZ-0005oj-3X; Fri, 27 Sep 2019 07:18:43 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726255AbfI0HSl (ORCPT + 1 other); Fri, 27 Sep 2019 03:18:41 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40086 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725804AbfI0HSl (ORCPT ); Fri, 27 Sep 2019 03:18:41 -0400 X-UUID: 357ac44c38a945ed8aa85e8bf2e5afca-20190927 X-UUID: 357ac44c38a945ed8aa85e8bf2e5afca-20190927 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 424122880; Fri, 27 Sep 2019 15:18:37 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 27 Sep 2019 15:18:34 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 27 Sep 2019 15:18:33 +0800 From: Dongchun Zhu To: , , , , , , , , CC: , , , , , , , , Subject: [PATCH] media: i2c: ov5695: Modify the function of async register subdev related devices Date: Fri, 27 Sep 2019 15:18:24 +0800 Message-ID: <20190927071824.18675-2-dongchun.zhu@mediatek.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20190927071824.18675-1-dongchun.zhu@mediatek.com> References: <20190927071824.18675-1-dongchun.zhu@mediatek.com> MIME-Version: 1.0 X-MTK: N Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds support for registering a sensor sub-device to the async sub-device framework and parse set up common sensor related devices such as actuator/VCM. Signed-off-by: Dongchun Zhu Reviewed-by: Tomasz Figa --- drivers/media/i2c/ov5695.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov5695.c b/drivers/media/i2c/ov5695.c index e65a943..b6ee62c 100644 --- a/drivers/media/i2c/ov5695.c +++ b/drivers/media/i2c/ov5695.c @@ -1328,7 +1328,7 @@ static int ov5695_probe(struct i2c_client *client, goto err_power_off; #endif - ret = v4l2_async_register_subdev(sd); + ret = v4l2_async_register_subdev_sensor_common(sd); if (ret) { dev_err(dev, "v4l2 async register subdev failed\n"); goto err_clean_entity;