Skip to contentSkip to conversation

drm/kmb: remove unused function

PATCH New Jiapeng Chong 1 participant 1 message Apr 15, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/kmb: remove unused function

Fix the following clang warning:

drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits' [-Wunused-function].

---
 drivers/gpu/drm/kmb/kmb_dsi.c | 16 ----------------
 1 file changed, 16 deletions(-)
drivers/gpu/drm/kmb/kmb_dsi.c +0 -16
index 4b5d82a..448cc1b 100644
@@ -820,22 +820,6 @@ static void test_mode_send(struct kmb_dsi *kmb_dsi, u32 dphy_no,
 		       (freq & 0x7f));
 }
 
-static inline void
-	set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
-						  u32 dphy_no,
-						  u32 freq)
-{
-	u32 data;
-
-	/* Flag this as high nibble */
-	data = ((freq >> 6) & 0x1f) | (1 << 7);
-
-	/* Typical rise/fall time=166, refer Table 1207 databook,
-	 * sr_osc_freq_target[11:7]
-	 */
-	test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
-}
-
 static void mipi_tx_get_vco_params(struct vco_params *vco)
 {
 	int i;
Signature · 1 line
1.8.3.1