pmaports/device/testing/linux-asus-t00f/02_drivers-external_drivers-remove-unused-constants.patch
Oliver Smith 64035ac463
device/*: move to device/testing/* (!1063)
Prepare for better device categorization by moving everything to testing
subdir first.

[skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR
				depends on this MR

Related: postmarketos#16
2020-03-14 08:35:32 +01:00

111 lines
2.9 KiB
Diff

From 8d15a34e6564cbc5aea33f35d72f2787732eb231 Mon Sep 17 00:00:00 2001
From: Peter Mann <pm@xdd.sk>
Date: Sun, 5 Nov 2017 15:38:56 +0100
Subject: [PATCH 1/1] drivers/external_drivers: remove unused constants
---
.../media/pci/atomisp2/css2300/sh_css_params.c | 53 ----------------------
1 file changed, 53 deletions(-)
diff --git a/drivers/external_drivers/camera/drivers/media/pci/atomisp2/css2300/sh_css_params.c b/drivers/external_drivers/camera/drivers/media/pci/atomisp2/css2300/sh_css_params.c
index 6fecaee8..2d564487 100755
--- a/drivers/external_drivers/camera/drivers/media/pci/atomisp2/css2300/sh_css_params.c
+++ b/drivers/external_drivers/camera/drivers/media/pci/atomisp2/css2300/sh_css_params.c
@@ -1530,17 +1530,6 @@ static const struct sh_css_3a_config default_3a_config = {
{1027, 0, -9219, 16384, -9219, 1027, 0}
};
-static const struct sh_css_3a_config disabled_3a_config = {
- 25559,
- 32768,
- 7209,
- 65535,
- 0,
- 65535,
- {-6689, -12207, -32768, 32767, 12207, 6689, 0},
- {2053, 0, -18437, 32767, -18437, 2053, 0}
-};
-
static const struct sh_css_wb_config default_wb_config = {
1,
32768,
@@ -1694,12 +1683,6 @@ static const struct sh_css_ecd_config default_ecd_config = {
0, /* 0.0 */
};
-static const struct sh_css_ecd_config disabled_ecd_config = {
- 0, /* 0.0 */
- 0, /* 0.0 */
- 0, /* 0.0 */
-};
-
static const struct sh_css_ynr_config default_ynr_config = {
0,
0,
@@ -1707,13 +1690,6 @@ static const struct sh_css_ynr_config default_ynr_config = {
0,
};
-static const struct sh_css_ynr_config disabled_ynr_config = {
- 0,
- 0,
- 0,
- 0,
-};
-
static const struct sh_css_fc_config default_fc_config = {
1,
(1 << (ISP_VEC_ELEMBITS - 2)), /* 0.5 */
@@ -1726,18 +1702,6 @@ static const struct sh_css_fc_config default_fc_config = {
- (1 << (ISP_VEC_ELEMBITS - 1)), /* -1 */
};
-static const struct sh_css_fc_config disabled_fc_config = {
- 1,
- (1 << (ISP_VEC_ELEMBITS - 2)), /* 0.5 */
- (1 << (ISP_VEC_ELEMBITS - 2)), /* 0.5 */
- (1 << (ISP_VEC_ELEMBITS - 2)), /* 0.5 */
- (1 << (ISP_VEC_ELEMBITS - 2)), /* 0.5 */
- (1 << (ISP_VEC_ELEMBITS - 1)) - 1, /* 1 */
- (1 << (ISP_VEC_ELEMBITS - 1)) - 1, /* 1 */
- - (1 << (ISP_VEC_ELEMBITS - 1)), /* -1 */
- - (1 << (ISP_VEC_ELEMBITS - 1)), /* -1 */
-};
-
static const struct sh_css_cnr_config default_cnr_config = {
0,
0,
@@ -1749,17 +1713,6 @@ static const struct sh_css_cnr_config default_cnr_config = {
0
};
-static const struct sh_css_cnr_config disabled_cnr_config = {
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0
-};
-
static const struct sh_css_macc_config default_macc_config = {
0,
};
@@ -1816,12 +1769,6 @@ default_rgb2yuv_cc_config = {
{2449, 4809, 934, -1382, -2714, 4096, 4096, -3430, -666}
};
-static const struct sh_css_rgb2yuv_cc_config
-disabled_rgb2yuv_cc_config = {
- /* Bits of fractional part = SH_CSS_RGB2YUV_CSC_COEF_SHIFT = 13s */
- {2449, 4809, 934, -1382, -2714, 4096, 4096, -3430, -666}
-};
-
static void
sh_css_dequeue_param_buffers(void);
--
2.13.6