Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4177538rwi; Mon, 17 Oct 2022 02:36:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4KAENh4ViS9aVJFEW/dK6TzT/3DkNohtbx7T0c307gNjrhX2eWgvSBVtey1NGWzzr95JhI X-Received: by 2002:a17:906:730d:b0:78e:9ca5:3269 with SMTP id di13-20020a170906730d00b0078e9ca53269mr7571329ejc.366.1665999383914; Mon, 17 Oct 2022 02:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665999383; cv=none; d=google.com; s=arc-20160816; b=ATEnmxEIxReaWbm9vgdfe9hqNkA4ST8Cmy53zkpkoy+iqcNcWo+BlYuV2N2RqlEOEj 6x2C8dXZw2GNGyv0v1HXWtaLZAZNqiBdPcqO8nsrqcqQMG0zI+wwWUD7ZUanj5kV9dM6 GGNJb648kL7QOMadD9YXxrBaLpPnqydD+rKP++NrltJk0b8CDHBwIbaECMjGqewIwBVj Znkii51uxNpiJNT9tJ6ID4VmAUbtuXvdfmkd5Ejx+peILdALp18AXGnLLz4Ja91i5BJ/ m9Lx3iUBk3qDFLvFrKdQ8acJUFYUkRhUX6BcUIuDxfljz7aQ26N0bDMh9hTGUBcIBOIT lksQ== 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; bh=iWUDDwUuGSTnItkl0jqEdn6K7rQKzRJlBNU5Bfy6Mcc=; b=h4r2iPYolfAVe3LaAmeaGO7TvD0AAS47bvG75vXqsQU/cbejwebCm5HPGdjcqW2CU3 w/ZAq0T06MGdhIzT6RvvsXTGv5TSHXwjQfCeD0bC5OrJXRHyOD2s5U7ANCKGsFSxS7ZD wcrTGCBjsWz2OFG8v/MefK7Mw1w97aB/qqZFOagr11FPWIane6AF74geMH4DvGeFQMBf VXufZ5N4EAVem/vkfRP4NxOxCfduf44wkd0JKaSSijCjp7UjxDomixIy8ot5W1tiaUBr 2wjyBuCrE2kRueVtblRAxlQdXl5ugqlx0mSjH0G+DjHry9E0OhxXzgAmvD4wUcta9/6H aCTQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a50ce43000000b00447b0cc1501si8503871edj.99.2022.10.17.02.35.58; Mon, 17 Oct 2022 02:36:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbiJQIod (ORCPT + 99 others); Mon, 17 Oct 2022 04:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbiJQIoQ (ORCPT ); Mon, 17 Oct 2022 04:44:16 -0400 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CDED2D1E1 for ; Mon, 17 Oct 2022 01:44:14 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R611e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VSLCgh6_1665996241; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSLCgh6_1665996241) by smtp.aliyun-inc.com; Mon, 17 Oct 2022 16:44:11 +0800 From: Jiapeng Chong To: hjc@rock-chips.com Cc: heiko@sntech.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/rockchip: dsi: Remove the unused function dsi_update_bits() Date: Mon, 17 Oct 2022 16:43:30 +0800 Message-Id: <20221017084330.94117-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham 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 The function dsi_update_bits() is defined in the dw-mipi-dsi-rockchip.c file, but not called elsewhere, so delete this unused function. drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:367:20: warning: unused function 'dsi_update_bits'. https://bugzilla.openanolis.cn/show_bug.cgi?id=2414 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index bf6948125b84..313231d886d2 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -364,12 +364,6 @@ static inline u32 dsi_read(struct dw_mipi_dsi_rockchip *dsi, u32 reg) return readl(dsi->base + reg); } -static inline void dsi_update_bits(struct dw_mipi_dsi_rockchip *dsi, u32 reg, - u32 mask, u32 val) -{ - dsi_write(dsi, reg, (dsi_read(dsi, reg) & ~mask) | val); -} - static void dw_mipi_dsi_phy_write(struct dw_mipi_dsi_rockchip *dsi, u8 test_code, u8 test_data) -- 2.20.1.7.g153144c