From patchwork Tue Jan 26 12:45:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 370629 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4963513jam; Tue, 26 Jan 2021 05:12:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkQB5hAWqPvkv29+d24nwS5tCclyAWHeuGSQr0XwQf6L00qxgu0RoUzuUOS9HTulDTOV+p X-Received: by 2002:a05:6402:94f:: with SMTP id h15mr4465173edz.106.1611666765592; Tue, 26 Jan 2021 05:12:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611666765; cv=none; d=google.com; s=arc-20160816; b=Sw+7B+yaTntaBZwiPbrMT8BkAlqu0Dxwc/CB8FZH9SrkodSUSf2J2UYT829/hkRiji /gcGftxr+c4aHbWpbnFDaSZyDWLwphfku3xqv2xJX65FqA4+cWeXXekFRxl6ZJ9Hrf18 eYq2Akv6o5HtmwIvkqiILXNp/UC1A7oY4T439vWCSAwE1p4xh3QFTkMjo37K0AQMHqFT KJtnw2AKpMH2D2KLv8uYidQWQdNWHKcCaKhyewn9r7RmNVGCE25/+78tQrGbVqZsJNyz Qhr+uvah/fOL1p1OaCwQgfQTap9ILgQyyJizL/iAIFE+I9KMqhjebSAi08pW8wk2RA+T 9s7g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tBcmISQSY7al+YXFrknNe1bUw1SwG09WB9C2kPAzCl4=; b=XjUAm5bVE7zY25EVeiR9h3r1ffORowpGsY+S28Bkd5awqMm2KecZaLe8gALD/kCgP3 QRLbKy/dGpFIi1dOjNzWPqBBlz9LXnq9Ajc/xWPxTronxm3okjvy+l7l3uyUrOtjInHj EAJk4qdttvlrKxFXYJNb9o2PvvkVpk/atzuGj06WLtVmIgTtBOMmIX+lHaGrC3YTLjFp utgTwLqYfeIFk99c3mA0cxWh/eGaJEZqGNKrgpWKogg09SazuRuUz6nY+gz+GOZXt7xB 6oPhHRXQQDNLTUDkY18XAM0xSLrBmSXwWa3naF9yaE8rSBu71+LskaZG0uhMwCI/lp09 NGXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cyrjzWy8; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd8si2758804ejc.754.2021.01.26.05.12.45; Tue, 26 Jan 2021 05:12:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cyrjzWy8; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391769AbhAZNMY (ORCPT + 15 others); Tue, 26 Jan 2021 08:12:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391908AbhAZMrw (ORCPT ); Tue, 26 Jan 2021 07:47:52 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1EC6C0698CC for ; Tue, 26 Jan 2021 04:45:50 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id a9so16316479wrt.5 for ; Tue, 26 Jan 2021 04:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tBcmISQSY7al+YXFrknNe1bUw1SwG09WB9C2kPAzCl4=; b=cyrjzWy83Rq8JRlGTOPUrMmxadvUnL9vvSIwiT3lS5yx2UIM7HYTjxC2kb6/frhSfw eL79RzsZqjIO7fQm26/px8IhbQJ7T+PJVEDBkJXNY/MZoyd6Mz0LHerlebTI9qf3jQ4+ nm3cPAfc9dPOwRZwVpThmEGq8rECXtzO/NPlqtGgQfuoJpy4BXhMszQL9K5/wjYVDplW WfMVfWJJUIJ7uR2/o10H2ZM3P6Dr/NmWnTHX5OMwo8ySPtZ7Hkr7F1SQwNanh7MGEmBB BehkkQe5ulO3rIzCzKhjVCKxeNNFd8mv17kNzT8DjG8zSygdmP4csM/A7Jj8DMN/YNVr HPgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tBcmISQSY7al+YXFrknNe1bUw1SwG09WB9C2kPAzCl4=; b=AExDfO22sf2ELWgHZZEuebsjM997t0Sz8ABQjhuvXZAG0Sq/8+DWBZbfu3a9+Yq9m4 Wwhl4HDJUX72kXgE9H3vJEzSWVOn1R3nw5b3YQYF4JvPhGiAQ6jmPGVVqPmucDzk5OqH qpWFjuKhHeGUv9y63FuvO7PYT2zI2KoRoByCfmg+mYg/RBRPYyExkd0azF1Uk4cZdM6h YjcKeBuU4A1nHwZnVlrpFPwn2oxtp1lizwEOFOzfqwqvclbLcM7jIf0qnG71Xnnd+6Sy J08BOaxFuy7VPZPR05VvZN5evPO52/Ci0mPtu8oKqnbcjubbWghnc9xlg7LGMxGd3TW3 DXNw== X-Gm-Message-State: AOAM532kg2Ya1p14KHMQ0bF6dBU9EHvStFVvotEHDDevktMLzT+K85ng ANhcH4kCPyvAQsyrdEjxLtQ5vw== X-Received: by 2002:adf:ecd2:: with SMTP id s18mr3962490wro.311.1611665149702; Tue, 26 Jan 2021 04:45:49 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id i131sm3263073wmi.25.2021.01.26.04.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 04:45:49 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 04/21] clk: qcom: clk-regmap: Provide missing description for 'devm_clk_register_regmap()'s dev param Date: Tue, 26 Jan 2021 12:45:23 +0000 Message-Id: <20210126124540.3320214-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126124540.3320214-1-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/clk/qcom/clk-regmap.c:97: warning: Function parameter or member 'dev' not described in 'devm_clk_register_regmap' Cc: Andy Gross Cc: Bjorn Andersson Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org Cc: linux-clk@vger.kernel.org Signed-off-by: Lee Jones --- drivers/clk/qcom/clk-regmap.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/clk-regmap.c b/drivers/clk/qcom/clk-regmap.c index ce80db27ccf2a..92ac4e0d7dbe2 100644 --- a/drivers/clk/qcom/clk-regmap.c +++ b/drivers/clk/qcom/clk-regmap.c @@ -87,6 +87,7 @@ EXPORT_SYMBOL_GPL(clk_disable_regmap); /** * devm_clk_register_regmap - register a clk_regmap clock * + * @dev: reference to the caller's device * @rclk: clk to operate on * * Clocks that use regmap for their register I/O should register their From patchwork Tue Jan 26 12:45:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 370625 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4947814jam; Tue, 26 Jan 2021 04:55:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3sUrCaboZ5DQUx5OhQaCVYu/eB2klAtjudikh9KeZ2aGLSweD6mqIiHPBXz5l2V4eXKi+ X-Received: by 2002:a50:b223:: with SMTP id o32mr4490553edd.79.1611665719455; Tue, 26 Jan 2021 04:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611665719; cv=none; d=google.com; s=arc-20160816; b=mW5CaGLpD32uV+8RiGtUVfVYnVWNceRK1rlbKSEGOuNzany6nVhMnzHqm8mLAPuvXd Kh1U+gTLNWjHtDdHHeVxvZvPvcjaobg6owLdvrOdOx8aJvDuiJMp3we9bykqpnmIbK3U 1K98HmLGWpKfY2Pxxd7qrtxFc3cU/34OGT/dajj26ZucR71ADA+NcqpZ2PcOwVd+2tIJ 2vY/VrFmYp2wm9z+TI1OY973BZ/UyLmbSuUj+wdHdeAT20f+SN7zBY0d1qK1wLIN7/pF uCcQ8vIA983YyIHcoCokaOyou98ceE2X9WG8+IFmnXzcWiHUXgWqP81g5O2Q+UMM3oqQ r9Rw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4mll2lpwENE608kX1kOhep+FnuspDxHBBTIWjYWHVv4=; b=nu09+I8PDEjWmT4J88yqDPLt2Bn5VYOjyHgXbhVbRoKaPAIHf7ZJyMvNVwqLhqWZQW JIfNNcCKckvbQg7Q1PJjDIWWpim+NjsllBHNRyWAFwYsTt5dbhOC5r4V5DGZ2tZCq/Pg dQXpw0jFNVCIzPO7xumN3rTQ1YgeCQeLe9bkYAd/l5+r9t+e1dD8cOLlUkx62cvpS3K2 XOdpQqlb/TgxxrNX5SIptUV0dyN3YkriSuPkk0MdhBUXxoxzBYiJSD4Im937kbo0Z2Tu N/0kp1R/IAHMSpJexaBzsp0TAXq79tORkEgKQVneTKuaiiUrCEvMRTEhv8ifNeqyAxBC v4VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pN4lfLmm; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg3si6660094ejc.744.2021.01.26.04.55.19; Tue, 26 Jan 2021 04:55:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pN4lfLmm; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404030AbhAZMtY (ORCPT + 15 others); Tue, 26 Jan 2021 07:49:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391934AbhAZMsj (ORCPT ); Tue, 26 Jan 2021 07:48:39 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C5B3C0698E2 for ; Tue, 26 Jan 2021 04:46:01 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id c127so2615517wmf.5 for ; Tue, 26 Jan 2021 04:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4mll2lpwENE608kX1kOhep+FnuspDxHBBTIWjYWHVv4=; b=pN4lfLmmVBgLX1q2BKk4RyuM8nfGi0iSK2p5oFzqbwR48oc2/k0GoyukN3ekRynO06 FKaAaAsWyotTSplcMwQPMAZVfJizyGQiOJBMk0yYcAymhgu9N2ZSbUSh6qjy288ou0pc HqtayVh1cyMBIbzfiBYPHmvVjr9IdO/PtWWdjNpPkVFE2CynLfawGQEBle+vluHgUEPi XIkSyDlNFtRmGLri4EMRNLpm0jF2EqbuLb6EDwAkGFdlQ5TAMlRTr4lVHYp6w+0UpvW3 IMv+nTm9wowh7LVp4WikScVxnNSItGlVg6V+ACms+OKjBP2oRnEDQeXLGZ596/KJomrY KMoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4mll2lpwENE608kX1kOhep+FnuspDxHBBTIWjYWHVv4=; b=tZnwdmqRY/Gdrnv76N/TsncVjDbTC5cw/fcL8vOWdRKiEosJ7SAjZ+/bXrTHKTdlI4 CjNx0shhQnLpopDFGN8T0OHjsdPVZ2MIlmSOLngNFiS3FD3Q7h5/o2QrWe56y8UgO9NG sV0wlhE/y4hEP5V8fQaRu5ArXEliaD+ZdYqW/Y2xfaTyiezEhg9DjtzLVFfgqOoldNnG sCGh6oy/NoEnuAyqO7/r83HkqO+/41/jBlg1ch+VQPfbCk1LUpWIjL49v0uEpsxztEQT Jf/5yrkJbHTKwLmyKDaMOh6lfyPYInZznjox2ln/W1CSetIrW6VfdeWt4F9ww+3u1+uT cX/A== X-Gm-Message-State: AOAM5302xp7wjHlXsZatpzsmntBhS/LCuRxINBVqqWcFXpFiXJZJ9UQ2 5jXcFXBVPTpnsro0cHBX79QKbeb9b3wqQAgV X-Received: by 2002:a05:600c:1911:: with SMTP id j17mr4552481wmq.63.1611665159968; Tue, 26 Jan 2021 04:45:59 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id i131sm3263073wmi.25.2021.01.26.04.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 04:45:59 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 13/21] clk: qcom: gcc-ipq4019: Remove unused variable 'ret' Date: Tue, 26 Jan 2021 12:45:32 +0000 Message-Id: <20210126124540.3320214-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126124540.3320214-1-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/clk/qcom/gcc-ipq4019.c: In function ‘clk_cpu_div_set_rate’: drivers/clk/qcom/gcc-ipq4019.c:1279:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Andy Gross Cc: Bjorn Andersson Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org Cc: linux-clk@vger.kernel.org Signed-off-by: Lee Jones --- drivers/clk/qcom/gcc-ipq4019.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.25.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/gcc-ipq4019.c b/drivers/clk/qcom/gcc-ipq4019.c index ef5137fd50f3f..8abad4032de71 100644 --- a/drivers/clk/qcom/gcc-ipq4019.c +++ b/drivers/clk/qcom/gcc-ipq4019.c @@ -1276,16 +1276,15 @@ static int clk_cpu_div_set_rate(struct clk_hw *hw, unsigned long rate, struct clk_fepll *pll = to_clk_fepll(hw); const struct freq_tbl *f; u32 mask; - int ret; f = qcom_find_freq(pll->freq_tbl, rate); if (!f) return -EINVAL; mask = (BIT(pll->cdiv.width) - 1) << pll->cdiv.shift; - ret = regmap_update_bits(pll->cdiv.clkr.regmap, - pll->cdiv.reg, mask, - f->pre_div << pll->cdiv.shift); + regmap_update_bits(pll->cdiv.clkr.regmap, + pll->cdiv.reg, mask, + f->pre_div << pll->cdiv.shift); /* * There is no status bit which can be checked for successful CPU * divider update operation so using delay for the same. From patchwork Tue Jan 26 12:45:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 370628 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4961847jam; Tue, 26 Jan 2021 05:10:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVt/9G3N2BB/RyGl/VJlbCj0APHvAUN4HohxptjYDqg5LjBVZ/+iWsyonaOkwY9p+AaZXG X-Received: by 2002:aa7:d2d4:: with SMTP id k20mr4428602edr.361.1611666650827; Tue, 26 Jan 2021 05:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611666650; cv=none; d=google.com; s=arc-20160816; b=X1PDslxDsn7U6l7kgv9uP7hy1MuXA3ZbyOOBlUG1MbYbv91XWRg/3CHr5bSajuTyb5 cHrShUssv3VUdd+dPLbC6qYv/QwiBn0/1AWw46dzD1iw2ucFa1cnJNIqL8xSr6uRqCpA Us4oyQSRVPmUemjk3nr4dH2b+VW68mZZPp/bAfvqkFqXMRpb9rCARQkeJbkzRmdNfmQ/ hSY43mN5lRS6ZJtLCloq4bFZHxk3FMB9eB+SzA88FiuLdskJ4s8xve3/hD6fIxz/sPgA 1tCYyNag5vsxkIxWQ2uMKr2Rms/ERYoW+MTVQYte4/sAmAgdUySw9P/8DJsrrUDQlGQQ mZTA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Vsa1KLPM2HfEp5vPRGS+UCgmT+VY3fPWtM+ipeYcvaE=; b=OWNksJY2k4fCgNVzk2/1epD09A5KtutEzQc+Tb8c5liv0oP1bVDyPuM+rEBpnnIxW9 J6/tWAryldaaT9EkNz9/w2ZjZNbM8KqgAMbEJ95XkFWPeDVUucGzhqxaQJa1xtK9JGKd fHw+eKTPgl4G00gVqr/TTTB1I/NsQo5lKggg3+pGY7FhfvvZvLKCMjOXGMmBmBSCvZuF qt0lbNYhzf9gLY5vylnvCRXH1eKaYZt8T42oAgd+TXhWbZL6pL2lB/5AESsep1Irmoju i1edka36+oKOPWILEj8vFgCViHtOsPmpnJzYl+qw1ylVmUxvbO6VS4WuMS+ETqvG7jR3 VV/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ubNNa5o9; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si7137527eji.245.2021.01.26.05.10.50; Tue, 26 Jan 2021 05:10:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ubNNa5o9; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391691AbhAZNJU (ORCPT + 15 others); Tue, 26 Jan 2021 08:09:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403943AbhAZMsq (ORCPT ); Tue, 26 Jan 2021 07:48:46 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92D9C0698FE for ; Tue, 26 Jan 2021 04:46:04 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id p15so9652193wrq.8 for ; Tue, 26 Jan 2021 04:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Vsa1KLPM2HfEp5vPRGS+UCgmT+VY3fPWtM+ipeYcvaE=; b=ubNNa5o9m+gajTa5oKlGyu7B8gwi4nKoh16thJTW4WeFwRg1FKFeybQ9F+rIJulvaq EBfVO029Q4zaQwtL72rs90nuQLE7qUC254lKleHwmU2gYBcRoNvPjCCmN809zdwh/cYg nuTuk7O6VJ5r1Aectu/nUjCx7mj5cP2Av5If4PjQxp0iG/CE6S9ZF1zyADLrz97pGBhe 8ogTNVz3DObwZ44MF+xEI5iPC8MwLjcDi2wxCQbsL5y49kSP2i9UWsjJCU5WqqspQVfL 1h5+sY7XSdE72Mk4ujGNvdlCQBrssRRUo4ciOaaqWZABEL4HNRxtizPvRLPPQJgfJUo1 CNqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vsa1KLPM2HfEp5vPRGS+UCgmT+VY3fPWtM+ipeYcvaE=; b=DVoi/K9H1LGSjoUc5c3QYnrK8lbrLqLi2l72IWZD8t5Qiv/T0ZiJF2oqRBLSXDGbnv Hznk4BGydiRA0MzSFmSn8adeuHfKsZRhfNzoL0TIcxq0bKyUaJwpHswDbrC2rTzJ/+Wm HxvwH3vx74z9lOYfZd8NiDhD02On5dF3M9YgjrPJIWkwjBaIq7Z9bOIOCJ6ojDTVyf4f Q8Sr6/ckOHGxVsus9Wz4AOcJI3Ea1WKJcXNqV8lkFDZrl9Rr1r3CJGd0ZoNgbK2ktE3d u+IVTHWXC/UqMODthRCqdqVLJ3XWtwVM9lzK8XIAz9Jstvlqaz85cwRqU0ntE/1L3iXm 9PuQ== X-Gm-Message-State: AOAM531mOoLcuUGBlqs/ef0Nm7yNkKyagH0XGtvE3flfapdTZXcS5aQ1 IpLBto8m1WQ0oc4PRO3W+MsB5g== X-Received: by 2002:adf:ecd2:: with SMTP id s18mr3963512wro.311.1611665163634; Tue, 26 Jan 2021 04:46:03 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id i131sm3263073wmi.25.2021.01.26.04.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 04:46:02 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 16/21] clk: qcom: mmcc-msm8974: Remove unused static const tables 'mmcc_xo_mmpll0_1_2_gpll0{map}' Date: Tue, 26 Jan 2021 12:45:35 +0000 Message-Id: <20210126124540.3320214-17-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126124540.3320214-1-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/clk/qcom/mmcc-msm8974.c:85:27: warning: ‘mmcc_xo_mmpll0_1_2_gpll0’ defined but not used [-Wunused-const-variable=] drivers/clk/qcom/mmcc-msm8974.c:77:32: warning: ‘mmcc_xo_mmpll0_1_2_gpll0_map’ defined but not used [-Wunused-const-variable=] Cc: Andy Gross Cc: Bjorn Andersson Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org Cc: linux-clk@vger.kernel.org Signed-off-by: Lee Jones --- drivers/clk/qcom/mmcc-msm8974.c | 16 ---------------- 1 file changed, 16 deletions(-) -- 2.25.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/mmcc-msm8974.c b/drivers/clk/qcom/mmcc-msm8974.c index 015426262d080..a1552b6771bc6 100644 --- a/drivers/clk/qcom/mmcc-msm8974.c +++ b/drivers/clk/qcom/mmcc-msm8974.c @@ -74,22 +74,6 @@ static const char * const mmcc_xo_mmpll0_dsi_hdmi_gpll0[] = { "dsi1pll", }; -static const struct parent_map mmcc_xo_mmpll0_1_2_gpll0_map[] = { - { P_XO, 0 }, - { P_MMPLL0, 1 }, - { P_MMPLL1, 2 }, - { P_GPLL0, 5 }, - { P_MMPLL2, 3 } -}; - -static const char * const mmcc_xo_mmpll0_1_2_gpll0[] = { - "xo", - "mmpll0_vote", - "mmpll1_vote", - "mmss_gpll0_vote", - "mmpll2", -}; - static const struct parent_map mmcc_xo_mmpll0_1_3_gpll0_map[] = { { P_XO, 0 }, { P_MMPLL0, 1 }, From patchwork Tue Jan 26 12:45:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 370627 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4960692jam; Tue, 26 Jan 2021 05:09:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyteEHks9HwNbWXqoHUZ8ahK8GZZmAC38DOVoRLTWGPYKFyvPi1eKRKiAqiN5RA4iA83C6S X-Received: by 2002:a05:6402:1f4:: with SMTP id i20mr4388740edy.180.1611666566886; Tue, 26 Jan 2021 05:09:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611666566; cv=none; d=google.com; s=arc-20160816; b=WaNbJHADzUhx9V/1bXCBAx4wsqntygzdaWDcvNnFk8rqtqlXSjfVFcmFiMLT17iwYd XDy3oCzJX2WpFLQmmMwxaYHVpSVM4Lr2sgt7xtQXoyyp9W0EYNe7agDzzcx4whQQNfsN HtlRGk8EsCPBrgmusfBeZP3N44a9f0Tc/ZYJcWRmdBYGrxnkmUUbrEbbWxcw23pIQo+K C2UER9D73JRpITMUX+cFwVpZeWnDwwGgP5V2olDQn6EqPqnGcLE5yzB1BNVERfn8K2AL aTOTTcxOeYQhYb/+mBkvrojm91jva6Izrc3HzSiRqOLIMBnHj46BRcbZuViqvXWBbcT/ nCew== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ACuhHqUyAOgeit1pJS1MxY6/38vCSWpT3UKaTx8+/JY=; b=rnKpWUAzkn1yGJgFR6pyhVD05T0B3J4q9LFHo3eoyHs4peEh8kXUjPqOyE3Lvk3Ihi rDtxcZZG5FsLtNoC55+XucnHlNwNoM0OOhH9YqNwHY6eDm8PzuJfOZVOWfDm0t5jef4S NqJLy2/xqeeFgU6rGoJDFKuAhEby9I4C64cemlfQd3lgHJ9M2+wr+7ZrpQGw0pPG3h9G x6alTMxHV/xmVOxRuVncK1zCCkN5pflr9KWLM8Sz8K2j/Z1hOKZgtn+slM7q5k9gCQa0 Jwg+p8z62BAYMpxu744fqrMN5m6ptI3zi+QowMXqQ7k3LWro2krrt5rK0fRL4JEbH/Ov 1P6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fM8B1mFx; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce16si8877914edb.87.2021.01.26.05.09.26; Tue, 26 Jan 2021 05:09:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fM8B1mFx; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392325AbhAZNIW (ORCPT + 15 others); Tue, 26 Jan 2021 08:08:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391968AbhAZMsz (ORCPT ); Tue, 26 Jan 2021 07:48:55 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46103C035430 for ; Tue, 26 Jan 2021 04:46:07 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id e15so2665476wme.0 for ; Tue, 26 Jan 2021 04:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ACuhHqUyAOgeit1pJS1MxY6/38vCSWpT3UKaTx8+/JY=; b=fM8B1mFx2eVpjNGE3vhWFZC0WnRAysxKHxe+DAlNp0M68o88FbxPu79MK7N6KiE2w6 9Xz6u4qdahy0LI9WhaFK/lyoXeoeyTIRv3jDEuQ+1axa99t2wwYOv3R4ZYP7Nf33NHcF h/ifupziL/bRk8bMH6nIbZRqrxAaPuu8HhFAWxW4P1w0jDAp4QjTtN/sMy8BVDVsBKeJ 5XqZMH2ZHCMbswWDflwfuj2IwwEkK5sK41ABrUURUYOQM0CqIeNKuZ/QR+TlG/5OyQY4 UAK2fLKyhInTzveMOSTFN0HX58oaY6FSzzY0nRCsLMpkwG8QaNeop7L+F9Ub+d7NkC/G +g1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ACuhHqUyAOgeit1pJS1MxY6/38vCSWpT3UKaTx8+/JY=; b=WSpXKSMS3Z2vYtLyKisG+0gTtv8k75ONwir0eJdFkmWtm9mwS78BHZnu/cE98teA7r w+0LkhaZvnY1QndFVDK7y/OczMhZI5UfeGCBp5NWqnRejDYWLpdDLSIwBX9YZHkS9PfQ +5FnJebcHE2+30VlZYSK+iAHDdzk6rYOr7VdlCClu0Fiw8/+ORyS3f5ggIcZNuu6v5Tz p10MCOkmTcd5IcZOjvoekQaZlr60F17aCSUs14/RrvDDaTeDe1yf5e3TdbnygmKE/D0F 1o22/RVpT/+5bE2t3/xmMZRTIgCmxPYdGj9MgLMJtfkQyKNYTe/KnBZPr/GWLFto3U+D ng8A== X-Gm-Message-State: AOAM533T6jVgDNvspnyKOWtXvqu/4gkF/3g53nZ7kq+VSVUGDdtyTbkZ 8101cWTSeP8V4xQpoU9eL7zV1Q== X-Received: by 2002:a1c:f706:: with SMTP id v6mr4569286wmh.85.1611665166044; Tue, 26 Jan 2021 04:46:06 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id i131sm3263073wmi.25.2021.01.26.04.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 04:46:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 18/21] clk: qcom: clk-rpm: Remove a bunch of superfluous code Date: Tue, 26 Jan 2021 12:45:37 +0000 Message-Id: <20210126124540.3320214-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126124540.3320214-1-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/clk/qcom/clk-rpm.c:453:29: warning: ‘clk_rpm_branch_ops’ defined but not used [-Wunused-const-variable=] Cc: Andy Gross Cc: Bjorn Andersson Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org Cc: linux-clk@vger.kernel.org Signed-off-by: Lee Jones --- drivers/clk/qcom/clk-rpm.c | 63 -------------------------------------- 1 file changed, 63 deletions(-) -- 2.25.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/clk-rpm.c b/drivers/clk/qcom/clk-rpm.c index f71d228fd6bd5..a18811c380187 100644 --- a/drivers/clk/qcom/clk-rpm.c +++ b/drivers/clk/qcom/clk-rpm.c @@ -73,62 +73,6 @@ }, \ } -#define DEFINE_CLK_RPM_PXO_BRANCH(_platform, _name, _active, r_id, r) \ - static struct clk_rpm _platform##_##_active; \ - static struct clk_rpm _platform##_##_name = { \ - .rpm_clk_id = (r_id), \ - .active_only = true, \ - .peer = &_platform##_##_active, \ - .rate = (r), \ - .branch = true, \ - .hw.init = &(struct clk_init_data){ \ - .ops = &clk_rpm_branch_ops, \ - .name = #_name, \ - .parent_names = (const char *[]){ "pxo_board" }, \ - .num_parents = 1, \ - }, \ - }; \ - static struct clk_rpm _platform##_##_active = { \ - .rpm_clk_id = (r_id), \ - .peer = &_platform##_##_name, \ - .rate = (r), \ - .branch = true, \ - .hw.init = &(struct clk_init_data){ \ - .ops = &clk_rpm_branch_ops, \ - .name = #_active, \ - .parent_names = (const char *[]){ "pxo_board" }, \ - .num_parents = 1, \ - }, \ - } - -#define DEFINE_CLK_RPM_CXO_BRANCH(_platform, _name, _active, r_id, r) \ - static struct clk_rpm _platform##_##_active; \ - static struct clk_rpm _platform##_##_name = { \ - .rpm_clk_id = (r_id), \ - .peer = &_platform##_##_active, \ - .rate = (r), \ - .branch = true, \ - .hw.init = &(struct clk_init_data){ \ - .ops = &clk_rpm_branch_ops, \ - .name = #_name, \ - .parent_names = (const char *[]){ "cxo_board" }, \ - .num_parents = 1, \ - }, \ - }; \ - static struct clk_rpm _platform##_##_active = { \ - .rpm_clk_id = (r_id), \ - .active_only = true, \ - .peer = &_platform##_##_name, \ - .rate = (r), \ - .branch = true, \ - .hw.init = &(struct clk_init_data){ \ - .ops = &clk_rpm_branch_ops, \ - .name = #_active, \ - .parent_names = (const char *[]){ "cxo_board" }, \ - .num_parents = 1, \ - }, \ - } - #define to_clk_rpm(_hw) container_of(_hw, struct clk_rpm, hw) struct rpm_cc; @@ -450,13 +394,6 @@ static const struct clk_ops clk_rpm_ops = { .recalc_rate = clk_rpm_recalc_rate, }; -static const struct clk_ops clk_rpm_branch_ops = { - .prepare = clk_rpm_prepare, - .unprepare = clk_rpm_unprepare, - .round_rate = clk_rpm_round_rate, - .recalc_rate = clk_rpm_recalc_rate, -}; - /* MSM8660/APQ8060 */ DEFINE_CLK_RPM(msm8660, afab_clk, afab_a_clk, QCOM_RPM_APPS_FABRIC_CLK); DEFINE_CLK_RPM(msm8660, sfab_clk, sfab_a_clk, QCOM_RPM_SYS_FABRIC_CLK);