From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31ECA3EE1EC for ; Thu, 23 Apr 2026 12:52:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776948764; cv=none; b=KkGhGE5148EJtVAXnsGs8mDR43mKALWmOTBCJUI/+r3Swfk1mzVLIrz+IS0GAMvIGah/hH0fhgPKLbShDW+cvw53Hx222/IYB1haNZibix6QxXtj0BDI5oBoxodN6+OhH4o61WAliN4OVpKreGlC57e6vLlh1fZhmRYVMRoDw/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776948764; c=relaxed/simple; bh=LRYRTI1R6uFPtNm9boDuQ+J2WejITXqetBV3qvxnKrg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MNE6AMCZXzkI8g3wMEizBsgvx2aDBf2iEXgIHBISA2Z0KqZnSQzM0eMbgOdWiRpjW/UA119MQ0KFwo/YIgQrSytkN8No2f9hDjIm2Fo6TY0xbHx3c+FlRAmMfI+a+cvLLIu0C6rqwEDe2765q5msiwqea7ZIB5yTUsYLA3mfbS4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NBIeCqv7; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NBIeCqv7" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-82f8b60e54dso4398022b3a.2 for ; Thu, 23 Apr 2026 05:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776948761; x=1777553561; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oWTak0AZpT5PAGRyOPrLhAfTDkzNQwl7PRRG7ggCKJA=; b=NBIeCqv7SRrPuee/kwhnCo2cq8CHQyYdsAz8nHlaGU1zpCXTHjejbJ7vxwQnyQfDL0 1BXd8UjObTFx+pRY1vWettcV3q7M4/HiIZGaHSM3BH+pz5TD1aiXZsKUrwNqUzzxVhD2 oZKzrlh+qekGm4eFA5OlNAseLX1HXP8YYNRg7zk0eQRupM3ZIl4GVSoBWL1WCwh6BchD KSFU1dhTLFOUk4sjJ8q9Pc9PxnlkZEyJR9rXHNaWhoeRvmNqlJ9KbAvrbxzEyd/qlHtC roKcm2DuEzh6a4MRzFsxDuEGxgPl/PXWeUaaDlveOzij0dXLsi7E8rHCC3xpOGk5dTG7 UIfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776948761; x=1777553561; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=oWTak0AZpT5PAGRyOPrLhAfTDkzNQwl7PRRG7ggCKJA=; b=LzPZ7zIFWvhqBL/ISZxrZCoBmlOLVxGobXaCMmqV+A9kE+WqqD+lRiZLbq96xGrldR ZLK+iYJv2uz1157YP9j5uMvz8gYnW51BWNwozuhCFzkZGm2YHUizZRcsvXZozWd1jkHM RCgBMy0Yb1oLntlIFr1ei93vyHSXNRaKMbRkePrO/tnxUMx12gdFBPTwnrPjBDBF/tZ9 W+Hq/TP2i43RhYwY0EdOSlrW5ijABLpMGS1tuyMueY++AHW3lJTcS6ENBS06Cy+2919s 4E9DdxfiZRYdm1bzQ7GDK6dIrwWmRvSdifRh2kl/TK2va8s4EcEKopQtoYXxd3tRG1dT lc9g== X-Forwarded-Encrypted: i=1; AFNElJ8d2jCIEdOlnoCPtePd4T6Ta6fWLLeyBc28meHr2VSDdKYsydyHe/a8ChzmpG1U4DyZ2gcS05oFoPtHWKs=@vger.kernel.org X-Gm-Message-State: AOJu0Ywn7wfWusTOGTeJoUMku4RY1+Bq8HO1FfDQqEnRxF3UWQGjZ2jD wcDrxdU8+02Lg0nRETuItRt8Ji9qa9WOdKUv4AAomNyGJFLBdaaXssmd X-Gm-Gg: AeBDietr/d5rIhGT5ibRkdSrvool9HzXZmLFAF4nbJ7i1dNUInhf4K3DsZ1d5+r3XUs aj9I+Ky+WtaFwiMIdxYWFoo+mzscBHwsYdOONuBGS1nDlNGCTR4j7KTbKKxe5UNpQCc6a29bl1i c/V85/p6hiIWXkJal/xdfMfpKN6ZhQ/hmcP18jJ0St4XtoV+v8NnvEJ7/FdIs/eCQTwGTRPD0tl tkEOE4wBLn2waGnoRv+R42xa6KBmWPCEDMafr4fuysvzCLTPR4LT/gcpGnDFVG8UYXtM5l08Mln QpMFIQ5krk8t3yP58MPKShXt48qaxhO2Ne7Kzhfz/WokKuEzy+c8kUKVHd6gn3QAPTBPW87/kLH rKDI1NirvrmG0xsJLiakw/SqPT8v5qKJ2iutBuB8m7SjzpOIWXaOnrRYwujBdIMEIvxLA4GOTZN bPmulhFGlwjsD5nistsTx+FHFCsYiOVqZjq/8AFZ0BHO0Z3/QNHcIx X-Received: by 2002:a05:6a00:3017:b0:82f:390a:69c7 with SMTP id d2e1a72fcca58-82f8c92c6f9mr27395845b3a.33.1776948761480; Thu, 23 Apr 2026 05:52:41 -0700 (PDT) Received: from arch.localdomain ([103.182.132.254]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8ec0092bsm22043687b3a.50.2026.04.23.05.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 05:52:41 -0700 (PDT) From: Debjeet Banerjee To: sakari.ailus@linux.intel.com Cc: andy.shevchenko@gmail.com, andy@kernel.org, debjeetbanerjee48@gmail.com, gregkh@linuxfoundation.org, hansg@kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mchehab@kernel.org Subject: [PATCH v5 2/2] media: atomisp: Remove unused DPCM helper functions and declarations Date: Thu, 23 Apr 2026 18:22:16 +0530 Message-ID: <20260423125216.19217-2-debjeetbanerjee48@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260423125216.19217-1-debjeetbanerjee48@gmail.com> References: <20260423125216.19217-1-debjeetbanerjee48@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove the DPCM-related helper functions and data structures that are no longer used after simplifying the CSI2 source pad format handling: - atomisp_subdev_uncompressed_code() function - atomisp_subdev_is_compressed() function - atomisp_find_in_fmt_conv_compressed() declaration - compressed_codes[] array from atomisp_subdev.c Since the driver does not support DPCM decompression, these functions were dead code and have been removed to clean up the codebase. Signed-off-by: Debjeet Banerjee --- .../media/atomisp/pci/atomisp_subdev.c | 33 ------------------- .../media/atomisp/pci/atomisp_subdev.h | 3 -- 2 files changed, 36 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_subdev.c b/drivers/staging/media/atomisp/pci/atomisp_subdev.c index 9de9cd884d99..07189230c308 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_subdev.c +++ b/drivers/staging/media/atomisp/pci/atomisp_subdev.c @@ -51,39 +51,6 @@ const struct atomisp_in_fmt_conv atomisp_in_fmt_conv[] = { {} }; -static const struct { - u32 code; - u32 compressed; -} compressed_codes[] = { - { MEDIA_BUS_FMT_SBGGR10_1X10, MEDIA_BUS_FMT_SBGGR10_DPCM8_1X8 }, - { MEDIA_BUS_FMT_SGBRG10_1X10, MEDIA_BUS_FMT_SGBRG10_DPCM8_1X8 }, - { MEDIA_BUS_FMT_SGRBG10_1X10, MEDIA_BUS_FMT_SGRBG10_DPCM8_1X8 }, - { MEDIA_BUS_FMT_SRGGB10_1X10, MEDIA_BUS_FMT_SRGGB10_DPCM8_1X8 }, -}; - -u32 atomisp_subdev_uncompressed_code(u32 code) -{ - unsigned int i; - - for (i = 0; i < ARRAY_SIZE(compressed_codes); i++) - if (code == compressed_codes[i].compressed) - return compressed_codes[i].code; - - return code; -} - -bool atomisp_subdev_is_compressed(u32 code) -{ - int i; - - for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) - if (code == atomisp_in_fmt_conv[i].code) - return atomisp_in_fmt_conv[i].bpp != - atomisp_in_fmt_conv[i].depth; - - return false; -} - const struct atomisp_in_fmt_conv *atomisp_find_in_fmt_conv(u32 code) { int i; diff --git a/drivers/staging/media/atomisp/pci/atomisp_subdev.h b/drivers/staging/media/atomisp/pci/atomisp_subdev.h index b12bb65be3f2..b399319ae2c9 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_subdev.h +++ b/drivers/staging/media/atomisp/pci/atomisp_subdev.h @@ -296,8 +296,6 @@ struct atomisp_sub_device { extern const struct atomisp_in_fmt_conv atomisp_in_fmt_conv[]; -u32 atomisp_subdev_uncompressed_code(u32 code); -bool atomisp_subdev_is_compressed(u32 code); const struct atomisp_in_fmt_conv *atomisp_find_in_fmt_conv(u32 code); /* ISP2400 */ @@ -309,7 +307,6 @@ const struct atomisp_in_fmt_conv *atomisp_find_in_fmt_conv_by_atomisp_in_fmt(enum atomisp_input_format atomisp_in_fmt); -const struct atomisp_in_fmt_conv *atomisp_find_in_fmt_conv_compressed(u32 code); bool atomisp_subdev_format_conversion(struct atomisp_sub_device *asd); /* Get pointer to appropriate format */ -- 2.53.0