From patchwork Thu Jun 29 08:11:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 698406 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 0B36FEB64DC for ; Thu, 29 Jun 2023 08:18:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbjF2ISv (ORCPT ); Thu, 29 Jun 2023 04:18:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232517AbjF2ISC (ORCPT ); Thu, 29 Jun 2023 04:18:02 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D1F130FA for ; Thu, 29 Jun 2023 01:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688026330; x=1719562330; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=X3COV2UnI8ySE1euOtFyDcRsYON7rb0o8GQZ0VwsN+4=; b=L4gG0wdOTYMl3hVqvN0Vn1CA/DOJepAAcdpT6/AnkZn55wNdS5nY4hnh lzS8K+obJJIMz9dPfGQveAv+KW74mJKo2ZAlqDUol1r3Ea4pKcZKB674t 23r2x7yzfKB0DcETwYhsbKQjUxSUSbCqK7sBJIu/wfVsBFRvg6AzOuq23 0tUsXoFxrG0i99t+8eOGDQg/Aum5+8P65cYFF02qQ+CMYZnhvpoEXvh/i wFJOGle0COaCChsCPHDvmk8IZevSZKcNQ/3rYapVIo5z7k0AU8M4clplS H0C9L11I+wg80d5XmypLvCwuFJlBh2KZCu4f7t1Q6Oj8pRs//5BsLrrZF g==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="351853046" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="351853046" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 01:12:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="694542081" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="694542081" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 01:11:54 -0700 Received: from punajuuri.localdomain (punajuuri.localdomain [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B420C1207EB; Thu, 29 Jun 2023 11:11:50 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.96) (envelope-from ) id 1qEmkQ-003r8r-1u; Thu, 29 Jun 2023 11:11:26 +0300 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: Hans de Goede , Laurent Pinchart , Dan Scally , hverkuil@xs4all.nl Subject: [PATCH 1/1] media: i2c: Select V4L2_FWNODE and VIDEO_V4L2_SUBDEV_API for sensors Date: Thu, 29 Jun 2023 11:11:16 +0300 Message-Id: <20230629081116.919253-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Select V4L2_FWNODE and VIDEO_V4L2_SUBDEV_API for all sensor drivers. This also adds the options to drivers that don't specifically need them, these are still seldom used drivers using old APIs. The upside is that these should now all compile --- many drivers have had missing dependencies. The "menu" is replaced by selectable "menuconfig" to select the needed V4L2_FWNODE and VIDEO_V4L2_SUBDEV_API options. Reported-by: Hans de Goede Signed-off-by: Sakari Ailus --- drivers/media/i2c/Kconfig | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 815c83135021c..1d64b8a94b955 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -25,8 +25,15 @@ config VIDEO_IR_I2C # V4L2 I2C drivers that are related with Camera support # -menu "Camera sensor devices" - visible if MEDIA_CAMERA_SUPPORT +menuconfig VIDEO_CAMERA_SENSOR + bool "Camera sensor devices" + depends on MEDIA_CAMERA_SUPPORT + depends on MEDIA_CONTROLLER + select V4L2_FWNODE + select VIDEO_V4L2_SUBDEV_API + default y + +if VIDEO_CAMERA_SENSOR config VIDEO_APTINA_PLL tristate @@ -810,7 +817,7 @@ config VIDEO_ST_VGXY61 source "drivers/media/i2c/ccs/Kconfig" source "drivers/media/i2c/et8ek8/Kconfig" -endmenu +endif menu "Lens drivers" visible if MEDIA_CAMERA_SUPPORT