Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp588084pxb; Thu, 15 Apr 2021 01:36:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy44E/X54ZuqySf9wDpl/SyBVjsw9ArXScInF/At5Hrc/nK8vKuTrYE3gY8UjoKIM8WCVDP X-Received: by 2002:a17:90b:34b:: with SMTP id fh11mr2699110pjb.105.1618475815886; Thu, 15 Apr 2021 01:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618475815; cv=none; d=google.com; s=arc-20160816; b=x9enmr8C99K5mrMKJOxbr0Ywx26/X8RrQS0D9kXnSlvU8ZilM4o4SYP66kch+TkcTm o/VZcz9+nKlQApI7R6yPyqLb2fk83RJYlXArj4MHxkPc7uGjV01O4Cm+m7AxXk85JbOl WoAy/QW2lglxPBtzxj6M0IvXSsEKpfyVPhjO9LQwu46fJVsBTUmOqjRr4OOWtPe/rbtQ 5TNmj/yr4DFjuHpYAhCAUybSQJNqJxVwxN9qUn4695MCz2bduL76ZD0y2ca85xNK/W9f idHuRp6dwtBzr/4t4glqlGt9tYVecUs/HKA5+fRXxUoR/TNxMNbY6cbzh3tVZGQ3Nf6z SEeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Y+gxG/K4BKCF0iUg2WWlIf86k1/lgqGqJ8DPMPTp//o=; b=zSPybleFBQ7N9PLpWdxEqzBUJ+DPkblXtPexDiy8yxWTcOEsbrt1NuiW+Ql9on0DUM BQbTbP0nfvML9L+2KN51ASF8n4pTWZ9+XTtGu4lCqhJHFzHNO59MgEJP4AbwornYAAY3 Uc/al2g2/F3LmzC8CYJDOi3qJJ9MOsnyWDpWgSEaLmg1fXyQgAbEyXa+jy/2x94tpzJn OL7PCr8RjwZHS/IQPcQ++fOpbo3lifRZIDzKEwkraXUMVjcJsATmJ2Ijr+/i2JRmTOlL CB2wXp5ZNQtbWGKUBQDrsASu9zQGmYj+uwoJXid/a1x6eEH4h0ZSn1hwncR9GuHS1sDS aoDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd12si2581219plb.198.2021.04.15.01.36.43; Thu, 15 Apr 2021 01:36:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231590AbhDOIgZ (ORCPT + 99 others); Thu, 15 Apr 2021 04:36:25 -0400 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:51448 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbhDOIgY (ORCPT ); Thu, 15 Apr 2021 04:36:24 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UVdfZCq_1618475754; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVdfZCq_1618475754) by smtp.aliyun-inc.com(127.0.0.1); Thu, 15 Apr 2021 16:36:00 +0800 From: Jiapeng Chong To: thierry.reding@gmail.com Cc: u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, matthias.bgg@gmail.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Jiapeng Chong Subject: [PATCH] pwm: mediatek: remove unused function Date: Thu, 15 Apr 2021 16:35:53 +0800 Message-Id: <1618475753-102123-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/pwm/pwm-mediatek.c:110:19: warning: unused function 'pwm_mediatek_readl' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/pwm/pwm-mediatek.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index fcfc3b1..cae0f48 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b/drivers/pwm/pwm-mediatek.c @@ -107,12 +107,6 @@ static void pwm_mediatek_clk_disable(struct pwm_chip *chip, clk_disable_unprepare(pc->clk_top); } -static inline u32 pwm_mediatek_readl(struct pwm_mediatek_chip *chip, - unsigned int num, unsigned int offset) -{ - return readl(chip->regs + pwm_mediatek_reg_offset[num] + offset); -} - static inline void pwm_mediatek_writel(struct pwm_mediatek_chip *chip, unsigned int num, unsigned int offset, u32 value) -- 1.8.3.1