From patchwork Sun Mar 19 13:37:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 665149 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 3005EC6FD1F for ; Sun, 19 Mar 2023 13:38:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbjCSNi0 (ORCPT ); Sun, 19 Mar 2023 09:38:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230151AbjCSNiY (ORCPT ); Sun, 19 Mar 2023 09:38:24 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A42EF1ACC2 for ; Sun, 19 Mar 2023 06:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679233058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4ElBMEAOxAifaU/g2MZDiubtm18mJfcsN/DjXe1709c=; b=aAmaQvMsKsE1vYXlUg/KEWNkMq4KDauGrD77KGhhkN656L9aWk57tX4xYkD91wbj+0u+UM KY3ZbdeBrp8nro6SF44UQEngDzQcFQiYg2cblis5lbactKOdm5dHSJsUTZuf2G94AYNEjW +EGHeedNs0b1vaZ4Jymr/wuy5WroDFI= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-356-lJxiB8EDNm21quCnpYhYvA-1; Sun, 19 Mar 2023 09:37:36 -0400 X-MC-Unique: lJxiB8EDNm21quCnpYhYvA-1 Received: by mail-qt1-f197.google.com with SMTP id l8-20020a05622a050800b003dd0659c323so2189907qtx.10 for ; Sun, 19 Mar 2023 06:37:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679233056; 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=4ElBMEAOxAifaU/g2MZDiubtm18mJfcsN/DjXe1709c=; b=SH2fLzNTM58RPsLRgFc3kFQhgGTHppv29euawlo6HduYOWoPmSyvG6apSf2Rl3ekHT IrlY3uU3dWIXCGmI4++htz8D3U7JVeoDnEfNejYA9gyDMgoFRVQPf/deprVk7Ww2Du9o 8jZq/BAI1Kz8P0YPam/VdBQN7I8rA13g2PDlvjnSnEq5hcaOn7hB/+qBYYWGgG39e88g GjYZiQjmCkjrrURFjYjhMZPg6CC52h4trczk7c5penLBDeadij47kikJAhli//Vhfyfu 2MrbRRVMwjxuE3ZKh8wwIYo0RQmpFlQLmKqgV4SeXOuTvIlyuvUJmTIsQ9jQXt8b7mw8 JGGQ== X-Gm-Message-State: AO0yUKWz2Ncfm1ytRp2wotsusoWE6OOW4fjpNVsMmYD/DHeXnQiaUC+k YQuQRTzGBshKVChfyXA+BEKZ/Uxvu2baXsBtU2Rtn97tzTu0KabySPbTghH9Qtl1iGw/jfeQV8R BXghKpiVE5yFtCvFeGMLP X-Received: by 2002:ac8:7d8d:0:b0:3b8:5bc6:deab with SMTP id c13-20020ac87d8d000000b003b85bc6deabmr23562501qtd.8.1679233056183; Sun, 19 Mar 2023 06:37:36 -0700 (PDT) X-Google-Smtp-Source: AK7set8IdYHA1YnUBVuZoPyzEs2rGkOGdaTNCx3yzfNl2lCRczCgZAgZJ1vDCIHW7RUBIRurqasktA== X-Received: by 2002:ac8:7d8d:0:b0:3b8:5bc6:deab with SMTP id c13-20020ac87d8d000000b003b85bc6deabmr23562486qtd.8.1679233055937; Sun, 19 Mar 2023 06:37:35 -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 h12-20020ac8568c000000b003d75bb8e652sm4551676qta.65.2023.03.19.06.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 06:37:35 -0700 (PDT) From: Tom Rix To: heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, nathan@kernel.org, ndesaulniers@google.com, sven@svenpeter.dev, agx@sigxcpu.org, Jonathan.Cameron@huawei.com, jun.nie@linaro.org, u.kleine-koenig@pengutronix.de Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] usb: typec: tipd: remove unused tps6598x_write16, 32 functions Date: Sun, 19 Mar 2023 09:37:32 -0400 Message-Id: <20230319133732.1702841-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org clang with W=1 reports drivers/usb/typec/tipd/core.c:180:19: error: unused function 'tps6598x_write16' [-Werror,-Wunused-function] static inline int tps6598x_write16(struct tps6598x *tps, u8 reg, u16 val) ^ drivers/usb/typec/tipd/core.c:185:19: error: unused function 'tps6598x_write32' [-Werror,-Wunused-function] static inline int tps6598x_write32(struct tps6598x *tps, u8 reg, u32 val) ^ These static functions are not used, so remove them. Signed-off-by: Tom Rix Reviewed-by: Heikki Krogerus --- drivers/usb/typec/tipd/core.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c index 485b90c13078..af6ecb54b52c 100644 --- a/drivers/usb/typec/tipd/core.c +++ b/drivers/usb/typec/tipd/core.c @@ -177,16 +177,6 @@ static inline int tps6598x_read64(struct tps6598x *tps, u8 reg, u64 *val) return tps6598x_block_read(tps, reg, val, sizeof(u64)); } -static inline int tps6598x_write16(struct tps6598x *tps, u8 reg, u16 val) -{ - return tps6598x_block_write(tps, reg, &val, sizeof(u16)); -} - -static inline int tps6598x_write32(struct tps6598x *tps, u8 reg, u32 val) -{ - return tps6598x_block_write(tps, reg, &val, sizeof(u32)); -} - static inline int tps6598x_write64(struct tps6598x *tps, u8 reg, u64 val) { return tps6598x_block_write(tps, reg, &val, sizeof(u64));