From patchwork Wed Jul 5 08:44:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 107041 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp498255qge; Wed, 5 Jul 2017 01:45:16 -0700 (PDT) X-Received: by 10.98.50.71 with SMTP id y68mr18832060pfy.2.1499244316516; Wed, 05 Jul 2017 01:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499244316; cv=none; d=google.com; s=arc-20160816; b=FypaAnBLkIsBOmy+21mrMrNvoNdPDWPzql2Wc65HiIW3k50ES+pQEklgtamAy6in/4 aXscqrKdl4xl5I51Tb0lhugAQrs7dKi7++uWwR9DKBNKAhFAlKisSNpfqSKVy7fwFpUm 0DOfo6Up34sbWKIyeCNFgrztZeRX3ud8/Jmu0FgfRyLD9+Ub52XMAtzJy46H2L1SfXqu RK82MLoLC0PTb1Q8ChIOhCdU5CmaRYFCBtCH5r+i8rLjBmlUHpxfrHGUfLtPFf/idiFG gsduaA9L1nIgN22aYY8KzJJWQxk05kB+hgBUbrHJDCj50RKWsLNa8rH1fTXzkEQ3lBJp bjPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ygYZUzc1pEp5Bdgt194NiaJkY3VD6hhjnuZnc1kcPWY=; b=PIFYlwxCZ9djkYhi8J0S3fcJ0xGGcx1saGk69JxunadLRBOazfaOajiW5DEFssoyOD 0wKHfwqvI22TP1/C7HE/ZWzdzAqbv/tUV3XR9nUVaUNHhszBx3+3v2r2SaDJckHXAvjL 9t5WtrXvrIY/bAKrFE3CnsDPxwanrP7/YS8hqyDvRhPWl4utRxuVm9mRLSvkHSFWD5ln VLwRrvRwf6RuoSUyPnAQIUf604XfdryD26xIkn7ynPSdEBHdJlkNBIjW8BFy/5snGZZT yHS+Vhedz4LlxeZ/rV5RqGgJC0zxRBHEBD/TontcVPy2tc77QeUSTzvCjON48LklZbUB ZjyA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si18253034pln.84.2017.07.05.01.45.16; Wed, 05 Jul 2017 01:45:16 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbdGEIpO (ORCPT + 25 others); Wed, 5 Jul 2017 04:45:14 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:45670 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751651AbdGEIpK (ORCPT ); Wed, 5 Jul 2017 04:45:10 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 5B5C2BF69; Wed, 5 Jul 2017 11:45:07 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hansverk@cisco.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Todor Tomov Subject: [PATCH 1/3] [media] ov5645: Set media entity function Date: Wed, 5 Jul 2017 11:44:47 +0300 Message-Id: <1499244289-7791-1-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set media entity function to MEDIA_ENT_F_CAM_SENSOR. Signed-off-by: Todor Tomov --- drivers/media/i2c/ov5645.c | 1 + 1 file changed, 1 insertion(+) -- 1.9.1 diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c index d1e844f..bb3dd0d 100644 --- a/drivers/media/i2c/ov5645.c +++ b/drivers/media/i2c/ov5645.c @@ -1229,6 +1229,7 @@ static int ov5645_probe(struct i2c_client *client, ov5645->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; ov5645->pad.flags = MEDIA_PAD_FL_SOURCE; ov5645->sd.dev = &client->dev; + ov5645->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ret = media_entity_pads_init(&ov5645->sd.entity, 1, &ov5645->pad); if (ret < 0) {