From patchwork Wed Aug 30 04:53:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13369958 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 444BEC83F16 for ; Wed, 30 Aug 2023 04:54:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242056AbjH3Exq (ORCPT ); Wed, 30 Aug 2023 00:53:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242039AbjH3Exh (ORCPT ); Wed, 30 Aug 2023 00:53:37 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F8ACC5; Tue, 29 Aug 2023 21:53:33 -0700 (PDT) Received: from umang.jainideasonboard.com (unknown [103.251.226.104]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 17097DA8; Wed, 30 Aug 2023 06:52:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1693371128; bh=AQ2hH+jjmRkRNsYwWM1DxgzM04liNAni9ssv/MDPoJc=; h=From:To:Cc:Subject:Date:From; b=Xu4I+rGCv8tfWDbVcXeTxJNVPjKUcdC7+8htVBxn+E0+33DmUCYXBo6/RRxfoTuhY r1TG8g+xBR9mpJPwqdxvcXrASevKsG4o0duqStY98uYk5SU1YRICxyajPudmjbh/bT /upQZqf1vD7p8sx9coAUXI3HCDN6COOIGa5Qv88Y= From: Umang Jain To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Riesch , Sakari Ailus , Mauro Carvalho Chehab , Ricardo Ribalda , Laurent Pinchart , Kieran Bingham , Umang Jain Subject: [PATCH 0/2] media: Use v4l2_subdev_get_fmt() Date: Wed, 30 Aug 2023 10:23:21 +0530 Message-Id: <20230830045323.71768-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Driver of imx214 and imx415 uses subdev active state, there's no need to implement the .get_fmt() operation. Use the v4l2_subdev_get_fmt() helper instead. I don't have the sensors, so the patches are compile-tested only. Umang Jain (2): media: i2c: imx214: Use v4l2_subdev_get_fmt() media: i2c: imx415: Use v4l2_subdev_get_fmt() drivers/media/i2c/imx214.c | 17 +---------------- drivers/media/i2c/imx415.c | 11 +---------- 2 files changed, 2 insertions(+), 26 deletions(-)