Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2238337iof; Wed, 8 Jun 2022 00:08:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5ogQoGt2k29789fvKR+oAjkjPRP8N5IXPUIJbJn6VxoXj11yM2B87HBhZspPSNhal0T8m X-Received: by 2002:a63:6947:0:b0:3fe:22d6:dfae with SMTP id e68-20020a636947000000b003fe22d6dfaemr3432401pgc.185.1654672080810; Wed, 08 Jun 2022 00:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654672080; cv=none; d=google.com; s=arc-20160816; b=LCZONaC0SWdZsekIc+gZPRZKShf0SyVD3OxuDOsP3t2fugMG0fGv4wEha2So/5MPhK U74tAm+uIrtny+zhO3geBY+rPuDbejfyIXOyIqMsUmCCnXmSjf7hb5qf3Hn1vEw7jPZy xh3uSYBX/4HS85LWezNdBMDAQ+PpkOAlw35cvtB2/FYABRjSfp76Cd1YAgtFaiXuwUu1 YbrnKyPRpJCTYZUOB3B/NJMVk1IL2+pirkeFH25ZzJIyuvZg+Gx8tDMel+BnEBl/5aZT M7Ia8PgOYVNIJ2C6NyODfP79fWtL9Y/7RIyV3wZdtPwdeb8TBGfDWDbGE5LunjplCj/b 1XZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Xg8lHaqvAkpTEW032LKuGrngpHum7BbT2QcVlYEOCL4=; b=b0RP0Hxk95EMNYKOOMLBb5ehCMSfMVzyHIrC0WPycFXTJI8uC04djgyc0v4DEisdl6 XoemD31XLzqS68AG0NBGsF717xdXrR27/47CuAC7nZbdj3M021xvxG8Eeq9M6KY6kP/D qlOdEfVJA07ALtftgScZC1W4Pe5tv4LOX70wda0yNss31sXbbso+3IVz9R6C8Ed1H4fL +jOyMmaZ9K6Q/G9UxcwnfMPb2NET8ifl9Uy4QmlhH2pQ4wdOnrdk0nvmcWY3W1UGLN/F K3QwitwnJrw9O59CwnM/o8+4G86MKnrgVVer7gXP52JougRJfOvnyc77FCL4kr6cd4v1 SdSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rvCHNBvS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a656646000000b003f617cc0cd9si28453690pgv.651.2022.06.08.00.07.48; Wed, 08 Jun 2022 00:08:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rvCHNBvS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386323AbiFGWst (ORCPT + 99 others); Tue, 7 Jun 2022 18:48:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381234AbiFGVkU (ORCPT ); Tue, 7 Jun 2022 17:40:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D2E5152DA7; Tue, 7 Jun 2022 12:06:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C16BBB823AF; Tue, 7 Jun 2022 19:05:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24F3BC385A2; Tue, 7 Jun 2022 19:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628758; bh=l+0I0SbIqtb+A2f2/RYmBLgaBp3aFf+0oUxXgNg1N6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rvCHNBvSPsGsGIwRzcXTsoehpmxLn8QURMCdNdVAMQdiexUzZ/XUfeuyMXnbUJgQj 32LwdnypIy8KiUq5IPhwJyC2lWkCBgLaq278IfrolGYoHvHTgA7Nj/zAyhadfOGzb/ I0UuFd1Z/lCtKUeRQRoPhNsTx4GSWSJI9eQ34nnw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Laurentiu Palcu , Jacopo Mondi , Kieran Bingham , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.18 444/879] media: i2c: rdacm2x: properly set subdev entity function Date: Tue, 7 Jun 2022 18:59:22 +0200 Message-Id: <20220607165015.760039300@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Laurentiu Palcu [ Upstream commit d2facee67b4883bb3e7461a0a93fd70d0c7b7261 ] The subdevice entity function was left unset, which produces a warning when probing the device: mxc-md bus@58000000:camera: Entity type for entity rdacm20 19-0051 was not initialized! This patch will set entity function to MEDIA_ENT_F_CAM_SENSOR and leave flags unset. Fixes: 34009bffc1c6 ("media: i2c: Add RDACM20 driver") Fixes: a59f853b3b4b ("media: i2c: Add driver for RDACM21 camera module") Signed-off-by: Laurentiu Palcu Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/rdacm20.c | 2 +- drivers/media/i2c/rdacm21.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/rdacm20.c b/drivers/media/i2c/rdacm20.c index 025a610de893..9c6f66cab564 100644 --- a/drivers/media/i2c/rdacm20.c +++ b/drivers/media/i2c/rdacm20.c @@ -611,7 +611,7 @@ static int rdacm20_probe(struct i2c_client *client) goto error_free_ctrls; dev->pad.flags = MEDIA_PAD_FL_SOURCE; - dev->sd.entity.flags |= MEDIA_ENT_F_CAM_SENSOR; + dev->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ret = media_entity_pads_init(&dev->sd.entity, 1, &dev->pad); if (ret < 0) goto error_free_ctrls; diff --git a/drivers/media/i2c/rdacm21.c b/drivers/media/i2c/rdacm21.c index 12ec5467ed1e..ef31cf5f23ca 100644 --- a/drivers/media/i2c/rdacm21.c +++ b/drivers/media/i2c/rdacm21.c @@ -583,7 +583,7 @@ static int rdacm21_probe(struct i2c_client *client) goto error_free_ctrls; dev->pad.flags = MEDIA_PAD_FL_SOURCE; - dev->sd.entity.flags |= MEDIA_ENT_F_CAM_SENSOR; + dev->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ret = media_entity_pads_init(&dev->sd.entity, 1, &dev->pad); if (ret < 0) goto error_free_ctrls; -- 2.35.1