From patchwork Sun Mar 19 14:10:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13180391 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 0FB26C7618A for ; Sun, 19 Mar 2023 14:12:11 +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=yXzbopul7K0R1n/jgABzDZfMPSKT37wARjJBF1nDzCo=; b=lDZcYZTVua9wQB qS81vp73Ygx8AqhiNcBxx8flIo+IDVtwG8zaqM8EEY9inEqO+G0SaK4p19RRp8SuTSDj7Kd7GdCNE brYOiPIz/ntGRlgWh8YHRDDe3vECpzWKIv9m1bBM4Q1qJQkLgqA0Nk61SCBdKMLWE/Kiklw1Jx3c1 jOEQ80G7yXb95Tyzepol64eFMgX0rt+5pK+4QiYgvLKjR/UZawqF7cQoIzT/CInkxZCU3GXna4raQ y8AbbG/spg/T+aYN99t0PhAeUoJv9SJpnGylNQzaFPmih1B9PUFpu7igQK46Gmy/yV19gudm2zbcA G4yRVMmoIkWnDl5WNIhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pdtkd-006qXO-1N; Sun, 19 Mar 2023 14:11:11 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pdtkZ-006qWa-0T for linux-arm-kernel@lists.infradead.org; Sun, 19 Mar 2023 14:11:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679235065; 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=Mxfg9kgQ8xTY4kfBNMCHJxuv4+U4pmpKqJi9ZEPAVGs=; b=NurgjfCQmPCgRyA4Xtmp2039QThPc0ButUkbGywdhbvABXR+wM9hxzEOn0i/2jgPehqKQu pWLROKL5cRCLOq4o3qT63e6/weDpCzSeSDt0vvk0ZysReNBpvTLksVcqvVqpI9YfRpEAF7 p/k5HXT4UdC/5rzVTN1RKwHWK0/UD2Y= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-616-8jaETMxcN2GxBVk5K3Hf7w-1; Sun, 19 Mar 2023 10:11:02 -0400 X-MC-Unique: 8jaETMxcN2GxBVk5K3Hf7w-1 Received: by mail-qv1-f72.google.com with SMTP id jo13-20020a056214500d00b004c6c72bf1d0so4874009qvb.9 for ; Sun, 19 Mar 2023 07:11:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679235061; 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=Mxfg9kgQ8xTY4kfBNMCHJxuv4+U4pmpKqJi9ZEPAVGs=; b=TBpXoVnzAsL/IHHnv6YBx6SGGtX4wUqKXS5QlWIKy+ptGbL7auzWUpCj3mXGnifHUl iD5/dGWCdLaZqiegWyYGKkP9ME8eZNmtDmlXq8366IbUEYwEiiqm5Mhp1IUhivWA7tNR I1BIDKS49RXMJL8gZVzs10uBsqBl6CeirY0vvg122GMes6odUbVoBCamI6cHYHElo6zP 1eFssMwnDLHP+CisNw2ogvsvcTUu7nUVQpDCjSos3Nyef3KOyzM+kBm1osocVMvcdrVb e6KPPBix7WeS5m4nXGZDcIgFd/qMSl9lpunh0vbZxGxVRqFTutWu40f3a7hmqFzDDhfN 9LLg== X-Gm-Message-State: AO0yUKWo2pnL7XHlylLeMryzzGfSec5UdYBWsxdq5E1wO7bldgWa7oP4 vYfmTbqZ1fKLVQIonuj85QDRyH+u29vMQZzSXftDB9NREes+0u2ojjt12XmuGrQX/Q7TO6PfXhb NsiiDgXOVEResNCRhRso/c5ZBeKCc5ST88T8= X-Received: by 2002:a05:622a:1356:b0:3db:6f27:60b9 with SMTP id w22-20020a05622a135600b003db6f2760b9mr11743879qtk.15.1679235061589; Sun, 19 Mar 2023 07:11:01 -0700 (PDT) X-Google-Smtp-Source: AK7set82QnetAWI+F3gcmRcjmUamYUEWEUr1FY8V21h15oRUvVodbHhYtRBiyrHKXmDFomTxkbB5rQ== X-Received: by 2002:a05:622a:1356:b0:3db:6f27:60b9 with SMTP id w22-20020a05622a135600b003db6f2760b9mr11743843qtk.15.1679235061327; Sun, 19 Mar 2023 07:11:01 -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 p11-20020a05620a22ab00b0074583bda590sm5492950qkh.10.2023.03.19.07.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 07:11:01 -0700 (PDT) From: Tom Rix To: linux@roeck-us.net, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, nathan@kernel.org, ndesaulniers@google.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] usb: typec: tcpci_mt6360: remove unused mt6360_tcpc_read16 function Date: Sun, 19 Mar 2023 10:10:53 -0400 Message-Id: <20230319141053.1703937-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-20230319_071107_255510_163B0BF4 X-CRM114-Status: UNSURE ( 8.55 ) 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/usb/typec/tcpm/tcpci_mt6360.c:46:19: error: unused function 'mt6360_tcpc_read16' [-Werror,-Wunused-function] static inline int mt6360_tcpc_read16(struct regmap *regmap, ^ This function is not used, so remove it. Signed-off-by: Tom Rix Reviewed-by: Heikki Krogerus --- drivers/usb/typec/tcpm/tcpci_mt6360.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/usb/typec/tcpm/tcpci_mt6360.c b/drivers/usb/typec/tcpm/tcpci_mt6360.c index 1b7c31278ebb..6fa8fd5c8041 100644 --- a/drivers/usb/typec/tcpm/tcpci_mt6360.c +++ b/drivers/usb/typec/tcpm/tcpci_mt6360.c @@ -43,12 +43,6 @@ struct mt6360_tcpc_info { int irq; }; -static inline int mt6360_tcpc_read16(struct regmap *regmap, - unsigned int reg, u16 *val) -{ - return regmap_raw_read(regmap, reg, val, sizeof(u16)); -} - static inline int mt6360_tcpc_write16(struct regmap *regmap, unsigned int reg, u16 val) {