From patchwork Mon Apr 17 17:44:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13214417 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39923C77B76 for ; Mon, 17 Apr 2023 17:44:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230347AbjDQRol (ORCPT ); Mon, 17 Apr 2023 13:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbjDQRoj (ORCPT ); Mon, 17 Apr 2023 13:44:39 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3A5FAF02; Mon, 17 Apr 2023 10:44:26 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id gw13so14228862wmb.3; Mon, 17 Apr 2023 10:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681753465; x=1684345465; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jJW18Rs7JyEs07/Vsxl5Q/32nWcrgJz6KvKEee91fk0=; b=BV10jJi+xwQ6OOPKITXXNWMZq06YdlI4y7lJhXPx918vi9tx96j23IdJF8FJ30yeWF kHE/oPeOweEOXFPIZM7gTOY8i+YUhXHpfZinoPBJD/zY7gizeO9k+UUMbxR1ioNc7/E7 y46KJ3eDsRmJ3yTYOcVQJENEmRk3j8f4VThzaELqqpiNf8nLBaIfa+6E74K4K4FY1gWR BVfgJ2/EukUqOLwhpzd+MKpORW5ON8kJSG3b7ohVBwe4luZVpqWyPhV4hqRUzwTLhH1C KTsjXYoF3JYO740OiQd3VRvVxkcMe+BIe5T49dPCHBcAcrFUZ7dwVEDFnRUyWCqr4kUD n3xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681753465; x=1684345465; 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=jJW18Rs7JyEs07/Vsxl5Q/32nWcrgJz6KvKEee91fk0=; b=k0eX/PaV+ksyOj7jzDvGa6fyQ11WbmFA/DS1x+BSxphgPR05QA6Vt61ZymkweoSXLI w6Lpq+nP0ySJKg/9hlot8rpL53RRAzVMMa/WrUDoQf9HyacdZ7DdEcTordQrIBcLjrmI 0BtFe/6ksye3Nz8qrbPq0lT3pRiSUfHbfcUq+CrSLikvKF151aiOxkAaCDL052xByCAc FzxHAn1NKJmQMvdAGGl4RxCT0+us+OzDx02x/zXf8NIzP1Osqdng2g0L/sUuKNxMJRKo WV+sBLUs4nwIEwDDJVxmNYZ/+KsfOY7JSEfdymQ39J78lsGA6PKaOknuiPH4tQJT/ykM PdMg== X-Gm-Message-State: AAQBX9fDyGnevtIyu/9gljr1zua3YgEvZulO/wFfP3rpkBcfuptLpWOo pZ73NHvohYNECxz2ztPaYqA= X-Google-Smtp-Source: AKy350apxZRx4/sxLOBqB59xySZBVPcCeQ+i8o2uxY9qtWQKPTKExJWAsp2IFvQ1442jz7n6Uz1dxQ== X-Received: by 2002:a05:600c:229a:b0:3f0:a098:f503 with SMTP id 26-20020a05600c229a00b003f0a098f503mr11484013wmf.14.1681753464918; Mon, 17 Apr 2023 10:44:24 -0700 (PDT) Received: from localhost.localdomain (host-87-7-13-196.retail.telecomitalia.it. [87.7.13.196]) by smtp.googlemail.com with ESMTPSA id f24-20020a7bcd18000000b003f09a9151c1sm12516155wmj.30.2023.04.17.10.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 10:44:24 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH 1/2] clk: qcom: gcc-ipq6018: drop redundant F define Date: Mon, 17 Apr 2023 19:44:07 +0200 Message-Id: <20230417174408.23722-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The same exact F frequency table entry is defined in clk-rcg.h Drop the redundant define to cleanup code. Signed-off-by: Christian Marangi Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-ipq6018.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq6018.c b/drivers/clk/qcom/gcc-ipq6018.c index 3f9c2f61a5d9..350ead66914c 100644 --- a/drivers/clk/qcom/gcc-ipq6018.c +++ b/drivers/clk/qcom/gcc-ipq6018.c @@ -26,8 +26,6 @@ #include "clk-regmap-mux.h" #include "reset.h" -#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) } - enum { P_XO, P_BIAS_PLL, From patchwork Mon Apr 17 17:44:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13214416 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3FD4C77B76 for ; Mon, 17 Apr 2023 17:44:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbjDQRok (ORCPT ); Mon, 17 Apr 2023 13:44:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjDQRok (ORCPT ); Mon, 17 Apr 2023 13:44:40 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD936B47B; Mon, 17 Apr 2023 10:44:27 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3f0a0c4e1ebso17646445e9.3; Mon, 17 Apr 2023 10:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681753466; x=1684345466; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2wl07vQ1AO+kNIizqaeliSseA8G5rkqNQsDitaTpZIc=; b=EEPaJN4zXOu38z1Cjv04aHBn/69AnpIvlOb/yelRxwWeryHfC6PWx3JXAqEADozrB9 K44VBCPrdgpKlRm+gX8PBY5A89GXbc7VHcsyidPHE7NxGLDBTb74Ww+k/VsU8A/3xrxI Az8Yv/aQVfCWGByh6LWhTWeqmzWqZXOHNgU/eWFaJ3b4vraVMkmDIQmf+6PjkvM0mCdU Ce/407+2oE4KsCEUWG7xf1ep3U+i4hzRpNkvr3oInXFtvrGh+ocdzni0WtxIUu9hxhxc RMeaxxcCoqlRQrPjYv1r4vCsmDYwJVMjcrKW2tXHqOZzAPM5ksv3Kp3ekj/sfYGRWWs2 dVpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681753466; x=1684345466; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2wl07vQ1AO+kNIizqaeliSseA8G5rkqNQsDitaTpZIc=; b=KaU/RJYwkB4YMEEmNv/9h9N90LiExgKtLFLCBiJmy0v149NFQECRItOWBA5mKnGzRg QbtVyipKb4YhwXx9Zawh8PG7RmlR3tP87NvV8HGe/dqxM86+E07eFXpbwza8Asml9Ssj aEtXKfSa2MlI4mpbbZQ7Gc5PVIVIPuJk8ppnEby34ccAgVUfZCJo9TbqQNlhvUN68Iy/ YFNQW1vMFVmJCQHVumMyB1zdXzIgzjGDxdPTHNCE3cMc8bJtlhXqQWZg8eplLyuW5p5o 9HV9ekg1zoIbj3yl06XUvJn2Tx6PBDOpviYhgG0TKKS0CVg6ZZ0tU2g97uDD5sD4r1kq wICw== X-Gm-Message-State: AAQBX9eKqjCbqjE84bN4gx7j0O9SbbhwicAPpNkEFlO18KFdxRovPm1o KtqkIjrAbENnBFJzPaMov/s= X-Google-Smtp-Source: AKy350axYaI3RgrUewJe+zqYDBluieZHARACOP6EU768NYQ7be2hn1b8turA8sReyvN3WU2DIgIW/A== X-Received: by 2002:adf:f1ce:0:b0:2f5:a412:dabe with SMTP id z14-20020adff1ce000000b002f5a412dabemr6818264wro.3.1681753466280; Mon, 17 Apr 2023 10:44:26 -0700 (PDT) Received: from localhost.localdomain (host-87-7-13-196.retail.telecomitalia.it. [87.7.13.196]) by smtp.googlemail.com with ESMTPSA id f24-20020a7bcd18000000b003f09a9151c1sm12516155wmj.30.2023.04.17.10.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 10:44:25 -0700 (PDT) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH 2/2] clk: qcom: gcc-sdm660: drop redundant F define Date: Mon, 17 Apr 2023 19:44:08 +0200 Message-Id: <20230417174408.23722-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417174408.23722-1-ansuelsmth@gmail.com> References: <20230417174408.23722-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The same exact F frequency table entry is defined in clk-rcg.h Drop the redundant define to cleanup code. Signed-off-by: Christian Marangi Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sdm660.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sdm660.c b/drivers/clk/qcom/gcc-sdm660.c index db918c92a522..6afce8e42ede 100644 --- a/drivers/clk/qcom/gcc-sdm660.c +++ b/drivers/clk/qcom/gcc-sdm660.c @@ -25,8 +25,6 @@ #include "reset.h" #include "gdsc.h" -#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) } - enum { P_XO, P_SLEEP_CLK,