From patchwork Fri Mar 24 13:26:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 74540 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp628958vqo; Fri, 24 Mar 2023 06:33:47 -0700 (PDT) X-Google-Smtp-Source: AKy350Z3Tr6bd0RHc2n8NBTGTxfCtW0DO44PnBsFDTftJpWbl9yNnEmjuxdk4JLmaVNoS5YQLoZn X-Received: by 2002:aa7:d806:0:b0:501:d43e:d1e6 with SMTP id v6-20020aa7d806000000b00501d43ed1e6mr3256933edq.4.1679664827701; Fri, 24 Mar 2023 06:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679664827; cv=none; d=google.com; s=arc-20160816; b=Kip2uzilJ7v5PI8T5nDq0NnfTc+ABR2E9+5YhTUMwHyxADlHO2/EWmA4aufQdu6RPC D/8tlbBSMJ5jmJQ3bm9JmzAQUApQm51SukFq/SgLpgLMtSiJWmZVt7CvpiZZIqYWeQaX d49DRM0S7f/khgSnJLPEP1XUMK1spkj/VnMvfCWtd4qm+UjRG3HgjYa5KjY4Gfpb3hSE /EnQ1o0tpsMhHTnvBQp9/7n3iKkufcAzZ6cW0hxTuzOpb9GXAyINpgJZEAe/q9EArecn cYdSvNpbxjzW8rFSyft8TXLreKooYeNaF9Xy0mYPVthgxbtl9NK86Tj5Hcdi/bCPp5+H vrvw== 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:dkim-signature; bh=rqu3TJ9Us4tjFNY0o3zPlo/dxstIWcHIOGlWftNzUnQ=; b=dwnLqdz9Bs/HJo/2BBgpcpCvfPesYlYCDwSKwDVYwK4WLmbSBhItyOY94RAq4wpNct YEI1AV5XgmnIgQZLvESisQKdLle41zU36NllBNazYofxXPCLItj939LVrJAJyHgBU4bG rBRTS2ViuL8mKn/63NGeRA04sRuligAUI+WcW/A/Mna8VO/d/AoQLis1IQwlutjEr2Iz +QSlQRd8wz/SsArwGKpN8067S2MPCZgLnTezsJ5AHQ0xKFe/x21M2X2yPShPCArX6efF g1ums+EvjSAFz01T950jnhkHpYa+LX9dwXKVnxncUCrarAAHz4j/vCkNVUHO6lRm5nKI kzzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OiKQd7pb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020aa7d7c7000000b004c4a3295106si18693258eds.17.2023.03.24.06.33.23; Fri, 24 Mar 2023 06:33:47 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OiKQd7pb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbjCXN2L (ORCPT + 99 others); Fri, 24 Mar 2023 09:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjCXN2K (ORCPT ); Fri, 24 Mar 2023 09:28:10 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58798234E0 for ; Fri, 24 Mar 2023 06:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679664417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rqu3TJ9Us4tjFNY0o3zPlo/dxstIWcHIOGlWftNzUnQ=; b=OiKQd7pbQIV5MERaKo6pkXoM8TnMI1TYI0orW5kfUHIWzoQSB7oiLZlz1N7wZUtWXSOYoB WDnK6/qUr1eS9P9eaqOWsw7RuVliLIPUrk7fKgSwqKLpn/boTRqzJwmP1nGbdIoiLoZ56D 4f+TNjtilPnRmMTaPk8+suKnvnTYcTw= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-321-wykLUkjgPha-VzOQ9K-JLg-1; Fri, 24 Mar 2023 09:26:56 -0400 X-MC-Unique: wykLUkjgPha-VzOQ9K-JLg-1 Received: by mail-qk1-f198.google.com with SMTP id ou5-20020a05620a620500b007423e532628so764141qkn.5 for ; Fri, 24 Mar 2023 06:26:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679664415; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rqu3TJ9Us4tjFNY0o3zPlo/dxstIWcHIOGlWftNzUnQ=; b=d+gJQMvQDUN9EZCBsKmgjvSCPFPsU0PeWQUenNFLA3Zx05adMvbeS4s/zqyhXGHW9V YLEYHCNI9ZbMtiS8ByjeArrrzP2xM+z1fREQCm3p3/6QaOYI2G5OzLecyVxKi4CV5M+k DETebzYA5R0gVDJvNc+19mo1t3WhA808xutHHB9XnGyjY2SuqBdKlkt3chCK5lzr9ci0 1tm3d1uREzu4mQOWK/C+F/RVJmkumkMqpC3v19EoqTTFB2WTz7eUIv9cYcWeJrcypNa2 6qkWMuoNLb+bdVtIXuXS9JSqSNeQzOtI1J6LQ6EIgc9jp2EZigBHgItij+qy9L2f312+ UqLg== X-Gm-Message-State: AAQBX9c0B9rnojUDB8ZoF5MJtUwzd63OG1hvgdd56MAXDoXmxovqOh6c x3mKpQQ+SV2N1hkTTeKjjoQo5UqE5Sj2nkv/sMBkeYuRNqKCeFqVeG268ua0Dmi7PuO2moBvonG 5DGBzYtY1DmXpd63Y1/ShxdRHKj9t93gA X-Received: by 2002:a05:6214:d07:b0:5ad:1a83:8021 with SMTP id 7-20020a0562140d0700b005ad1a838021mr3926027qvh.49.1679664415746; Fri, 24 Mar 2023 06:26:55 -0700 (PDT) X-Received: by 2002:a05:6214:d07:b0:5ad:1a83:8021 with SMTP id 7-20020a0562140d0700b005ad1a838021mr3926002qvh.49.1679664415511; Fri, 24 Mar 2023 06:26:55 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 123-20020a370381000000b00746a7945d87sm5095680qkd.52.2023.03.24.06.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 06:26:55 -0700 (PDT) From: Tom Rix To: vkoul@kernel.org, kishon@kernel.org, heiko@sntech.de, nathan@kernel.org, ndesaulniers@google.com Cc: linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] phy: rockchip: remove unused hw_to_inno function Date: Fri, 24 Mar 2023 09:26:49 -0400 Message-Id: <20230324132649.2649166-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761256226505736321?= X-GMAIL-MSGID: =?utf-8?q?1761256226505736321?= clang with W=1 reports drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c:284:36: error: unused function 'hw_to_inno' [-Werror,-Wunused-function] static inline struct inno_dsidphy *hw_to_inno(struct clk_hw *hw) ^ This function is not used so remove it. Signed-off-by: Tom Rix Reviewed-by: Nick Desaulniers --- drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c b/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c index 726928ff1273..401b0aabb159 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c @@ -281,11 +281,6 @@ struct inno_mipi_dphy_timing inno_mipi_dphy_timing_table_max_2_5ghz[] = { {2500000000, 0x15, 0x54, 0x7f, 0x15, 0x6a}, }; -static inline struct inno_dsidphy *hw_to_inno(struct clk_hw *hw) -{ - return container_of(hw, struct inno_dsidphy, pll.hw); -} - static void phy_update_bits(struct inno_dsidphy *inno, u8 first, u8 second, u8 mask, u8 val) {