Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5607652rwi; Tue, 18 Oct 2022 01:16:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZvYW1hflnrP08dKcgDlPpE+VmtJ5Kk/nDDK9aOxU/M9lABA4Ju/TB3w/rECuLkgFW1dYj X-Received: by 2002:a17:906:99c2:b0:78d:b5cf:419e with SMTP id s2-20020a17090699c200b0078db5cf419emr1416745ejn.673.1666080982742; Tue, 18 Oct 2022 01:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666080982; cv=none; d=google.com; s=arc-20160816; b=J0p3YV5iR87H3shArkFPg5T2j68W6qUt0s9ldsGE/qhhH3ziADaQBFDUM43O/Cns2Q 8+uDYoIHoCgrI7X0yVCsNJN5xKsFt+gCSOeOV44t49+4W6sQcG3dsbmJq8nGqKjY69xG IqKzArYxEkcXvD1TxrggLOOu5cLvZFdUo4ctoQ7A1WleqxpEkdI62MOz18gEhq3pZkAY qA76F3NNQVOPoejUowKpA6KAXdH6Pr9a8mCIeFMwj9gM9Lq0ac+Qnuif+2aSWXqLYUrB peWacY9DjHyZZ4k9HTdkhQkia27yK1OH7Y1B6WClcsywDajlTtyJuORA+OWdouGqOqQs WXow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZAA9KjtWLjdJgBPqu63qd3Qj9kTS6EjkG4Z8GqUHF1U=; b=eEtPYWm1N9VfCyGKKngmwSncdE+zNRLPAMTPSXguJR60GdUxMlav2AODcVM6nLXBlI WS1IWH3wbpY3HVE0Y4ohDzj+ch2YbqBKfYEi6xT8oW+Bx2UfqORx4njUoaE5xmsfX+ih Uw1uHlcGK9Obe+8hlz9Buj29prP5OTlzjcDxIGJLsgINhxeoSGDJPJ6wBOgaGvSLiBcq /TwBOe6klNC+6hLHqIfqC+hByboMB+iCACgBlr6JapVGRjAI0Mc3psrDnqpc87eoRY/W 3Qjq36akxI1y4gUfBalkrcS82CnZI8iqmRzBtelcbsiPCexyujivPXEtNLZ7XoiA1dYj +SNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a056402359200b0045d06ea5596si12558242edc.26.2022.10.18.01.15.57; Tue, 18 Oct 2022 01:16:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230216AbiJRIAs (ORCPT + 99 others); Tue, 18 Oct 2022 04:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbiJRIAm (ORCPT ); Tue, 18 Oct 2022 04:00:42 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 161401010 for ; Tue, 18 Oct 2022 01:00:40 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VSTywLl_1666080030; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSTywLl_1666080030) by smtp.aliyun-inc.com; Tue, 18 Oct 2022 16:00:37 +0800 From: Jiapeng Chong To: anitha.chrisanthus@intel.com Cc: edmund.j.dea@intel.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/kmb: Remove some unused functions Date: Tue, 18 Oct 2022 15:59:44 +0800 Message-Id: <20221018075944.108207-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Functions set_test_mode_src_osc_freq_target_low_bits() and set_test_mode_src_osc_freq_target_hi_bits() are defined in the kmb_dsi.c file, but not called elsewhere, so remove these unused functions. drivers/gpu/drm/kmb/kmb_dsi.c:822:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'. drivers/gpu/drm/kmb/kmb_dsi.c:834:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2426 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/kmb/kmb_dsi.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/gpu/drm/kmb/kmb_dsi.c b/drivers/gpu/drm/kmb/kmb_dsi.c index cf7cf0b07541..ed99b14375aa 100644 --- a/drivers/gpu/drm/kmb/kmb_dsi.c +++ b/drivers/gpu/drm/kmb/kmb_dsi.c @@ -818,34 +818,6 @@ static void test_mode_send(struct kmb_dsi *kmb_dsi, u32 dphy_no, } } -static inline void - set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi, - u32 dphy_no, - u32 freq) -{ - /* Typical rise/fall time=166, refer Table 1207 databook, - * sr_osc_freq_target[7:0] - */ - test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, - (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; -- 2.20.1.7.g153144c