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: 13186759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0F4EC6FD20 for ; Fri, 24 Mar 2023 13:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mukUIhgaRTLH6j6ke3FF18aLxi55isAjiCaBkshUlkU=; b=HmU6FklyB2KXoe dnEFKV+Ks64CBh6rdPmXHAEtwRTTGxzpbCl5tra+uAV45icipqumZosh5LgabaBgZ3Ovl762f64Qg +zA39sYJ+6K+cYtl3pHxX1CIaDR23beVtwySlIwLZOldUfnBTZTSG0Fw58UjwaJ3Mlx7kKcR80Uf/ xJTpoedwD1Bd8y4HQT3H/qE8HQSHm6/NRVj0Y+mXmtgCPt6EhBHkBOiQQiFypU/PFy2Fpu6ZqQUCb 0NBIyi4SyQZVfvvQ5lj9kUdzbx76STZ4NaKZMvvOJGfYm7+pOvzqLtC79PuRK/ek/M1TBPRSW0o2k v+CWdMzBmZ2vj1eILovw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfhRk-004UQn-1W; Fri, 24 Mar 2023 13:27:08 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfhRa-004UNj-26 for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2023 13:27:07 +0000 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-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rqu3TJ9Us4tjFNY0o3zPlo/dxstIWcHIOGlWftNzUnQ=; b=eh62+0trEr7F8Xo2fRLbctUumberdj0TmYkvEnAbOsM79hU/h4QrIDmEaWM9U86jUrntFl FqborovT+Xkp8+0CP1CW+0HYZsSKbv74OQozKe8zxtkAc7tQDCCTkmyFl+FhTHDECSVKoT sTE7qoPwCL2GfUatxBlFrawHpqRp9m0= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-77-_c-lglBiP1uy-T4NOdhhDw-1; Fri, 24 Mar 2023 09:26:56 -0400 X-MC-Unique: _c-lglBiP1uy-T4NOdhhDw-1 Received: by mail-qk1-f199.google.com with SMTP id c80-20020ae9ed53000000b007468c560e1bso780559qkg.2 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=3qcAzmw7AQlYNOtVoWhw0ecVNNOwuXo8KL3gIPKf6FKllOnkbPKVXJ5nukIKrJyF26 0cEI8v0s+jmF1sYMDpes9XReaD4FHpjJHV9jOMmT0DvTiLj5COb/yfPMKE2vGTKxa1c9 SWqXPRVRMBQy8mNQDE7Bo/U5OsUVQqTeRT06g5Ro8f/I2JkCGBJEbMyZxqXI4i/p8Rm6 j4N9Kd350WzMoXsqcjHBV5ghZOrR+3aHyR7sxM+QOhbNCX+JihLGZN9bgWabxMTSJKZI VvW4Vg2ChnTTMXaGQp6Zf3DWaaLu0ZPnjnzA+nlsuelrYnF8PomDn7bmHgNlZJhBaoTg QX9A== X-Gm-Message-State: AAQBX9fkO7RQzPuOJVNzPhp9Ttjptdl9xPYR7LKQ1D4gC8lAl5BQHX+8 7Oi5fLfoxFxdKdvYM2iP56bW/gJpRQC/ecIhf3rJY/fHKX2ay+jfFKAN46VLnEhR4R1la5ENliA rdFxSN0nM1d1eIXz1kDwqaIFoWHIKqi+Q0H0= X-Received: by 2002:a05:6214:d07:b0:5ad:1a83:8021 with SMTP id 7-20020a0562140d0700b005ad1a838021mr3926029qvh.49.1679664415747; Fri, 24 Mar 2023 06:26:55 -0700 (PDT) X-Google-Smtp-Source: AKy350bWyV7OYeyD9u0w6iNh0EYkkwfo17tJz1C8lhIiQ8oaWqvEFwUsQXfvyFHVNhZAkqBx+PZ4Og== 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-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230324_062658_833462_D9B7B1A7 X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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) {