Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1198669lqh; Sun, 5 May 2024 23:00:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLgCNaEWO/BUqLcWztO6jyZKDBt3RvLoVURCAd6+sz4D+Ojisa9BAUtPgiJV62+d1cIWHShSPHu7EJMNTMucAgFoihNXMYhzjyQaxSgA== X-Google-Smtp-Source: AGHT+IHNFZ5UFYasvTgYty68A9f1FUbUWuEuqszwxp/Sb8lCRyHDx6S6i1E7t7MnH157t9jBzzCT X-Received: by 2002:a05:6214:224c:b0:6a0:d612:a1a6 with SMTP id c12-20020a056214224c00b006a0d612a1a6mr11850531qvc.19.1714975240132; Sun, 05 May 2024 23:00:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714975240; cv=pass; d=google.com; s=arc-20160816; b=fMDDylSlDC3vL5mjJDfojFj7OdjqXw2kHRpWYzitN9ju5LZPTP0+bT4cYt6Xmhvv5L EH7b1U03t1PawBlDrCQgtgzxiBmGoKfzNGokE1bknqLmGjky/HI7bXsG/e0TIiu73f0V yi76GqrF6srQQhpaHOJjEHYldNO6Oo9CKXfYbrkfKHuH/LpX2H8ykZo+6zQ6MamBpNpn xnxHzAKU5lyACQd3qGCM0/z/k9BV0Z62ydL7DZl9MWEwFAWeYTlQ1INkh92QExZflxSb y5xxjI/eRQiDa6kYPHS+R0JjOh7Fq8tZac6lfdU0+0/nEd3sSTOwVp2Ukz0Zld7JNoIB UXpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature:dkim-signature; bh=WajCcGPR+XaLVy0+/PLXqXPoOJ+RABV89d9ErK4h1rw=; fh=Ck0fOcHdhRzgBaHwp6SaSYBo0j21rhywV4MXv2yQ9aM=; b=xX1VL4HsH85xL3VKV7j9nP3iDlYIhRyTv4k9+iS2O5O5Iww8rAzrhobMySsQTE21rB yvVPDeHRL5VQLDzx5ZXykRRwqnTI3QTIWHjVib9QYmz5xT/t3XeQpqCs9zU4mQMHOIrJ tE6D+SpKRceXLou1x+A5wkUVUZVCQfAcS6MBxe11fJkvtRsbIf3xVBodRBOj2d9K9HPO m3JfAY/ct93rJjStKAoydWVsmMBxcvE5u2Bx9/R1NNkaB71e7q508AF2h7KaYLM/yqRQ NwiGjPeDlqRMQoH6HTkK4rrNxWAK/WdvkEXx9/Djlsa/IgLWLgJHSNALSz8eVT6ZWIf8 QjEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=kWwGrPib; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=ZQ1ozOPs; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-169337-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169337-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kj30-20020a056214529e00b006a0c7e6e158si8714792qvb.341.2024.05.05.23.00.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 23:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169337-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=kWwGrPib; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=ZQ1ozOPs; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-169337-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169337-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C90491C211B7 for ; Mon, 6 May 2024 06:00:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 642A252F99; Mon, 6 May 2024 06:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="kWwGrPib"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="ZQ1ozOPs" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A95D947F4A; Mon, 6 May 2024 06:00:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714975210; cv=none; b=imjSvUPssesB6a4akkioBXdpb/yrOprx52HaqUdQ3ePRgGnBJepxWARZx8RZKJXuQ9Wltq2b/s5+aq730UKfILOAyoj3p9BMNLOQG94f1wHycq9bqfIMXjqCn9eCOXRKGbcThjOfe7JkOOO9MJjJbB4qVvpRhKssu4Wrnp25J74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714975210; c=relaxed/simple; bh=MPRjo3xSqwSZ3ODY9ZbYTjHgadAb+Mo9aZdSRQIKs7k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RU6dxMQkFIuHlc9wKoEd7nKlVeHTF1q6ckRwwipr31caHofxYEOcQWK+KwM+M7lv9lVh6GHZL44CuL9gP0oyPcylke6+D1xeK7i7Kvquu8hygp+pBuDbFwKxTe6ZL/JpZ0eCjvDLgb2YUaL3CZsftrnWLSZ996zUHkO+h5H+T5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=kWwGrPib; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=ZQ1ozOPs reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1714975207; x=1746511207; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=WajCcGPR+XaLVy0+/PLXqXPoOJ+RABV89d9ErK4h1rw=; b=kWwGrPibIoIUljlICVDOjzF4KktMGdTcOEXUBeNANMynjmtH9GCqAchK bGpnm6bC44vXvQ7cvwm0hrdXmJQvEfE0kkvMUfv3zTPfux+GIz9XW2iUt TW6QdqnyjbowRpwaYjungk64ooZdQvid0uIycehJ/cc3dIDaN/XgmVWsF mAC1M9k/SeidDYbnlWcz2s18jwbjn8RiN5JZ9Te3WGHKTF3Hy8ZMG5O1w /76hwFt0xA2BfQGodFmT5tXo3KecLS55Z7bJ0B7LEvxrK9sFXLee2ULuM DXSHZftEneFjsY4Gof322WKNIbKUPjRt9V2reb07FRcfFcbgkF3LFVPe4 Q==; X-CSE-ConnectionGUID: 1j21jt35T0GDXonLDJC10g== X-CSE-MsgGUID: V5N8EoOdRkG1nuUySIf0Uw== X-IronPort-AV: E=Sophos;i="6.07,257,1708383600"; d="scan'208";a="36751417" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 06 May 2024 07:59:59 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EDDE5176087; Mon, 6 May 2024 07:59:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1714975195; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=WajCcGPR+XaLVy0+/PLXqXPoOJ+RABV89d9ErK4h1rw=; b=ZQ1ozOPszUzyO5NFashdlmaG62d/kfs2JjFzkhH/nqVenZc02N0uuoDkSqctyA/dluFWb+ 1EROpPxeefuHYFL6CJGHWgvWV+BvRxv6Hmgfb1+nWHf0iREfmSFa6DqiLOk5DX6d3cydX5 /yQ6gXPjeGn2GDOwKDo9jH5jntV5vRkuv4pAh1acx/TV2QjiPs5a04Mo3gzyUPCmK1gwZ3 hWuIUhcwspFjX4KfWTSt3h6/9HWJWP0hQOjXRPmw4EZ024/4/9teK/+o538BqUo6csH9PO f69KMxkldPE8KBm1oh9SAReBQmPplTBO155Yw0AyBu3D6TT7bS6AL4vUmU5d3A== From: Gregor Herburger Date: Mon, 06 May 2024 07:59:43 +0200 Subject: [PATCH v2 1/6] can: mcp251xfd: properly indent labels Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240506-mcp251xfd-gpio-feature-v2-1-615b16fa8789@ew.tq-group.com> References: <20240506-mcp251xfd-gpio-feature-v2-0-615b16fa8789@ew.tq-group.com> In-Reply-To: <20240506-mcp251xfd-gpio-feature-v2-0-615b16fa8789@ew.tq-group.com> To: Marc Kleine-Budde , Manivannan Sadhasivam , Thomas Kopp , Vincent Mailhol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux@ew.tq-group.com, gregor.herburger@ew.tq-group.com X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714975188; l=5033; i=gregor.herburger@ew.tq-group.com; s=20230829; h=from:subject:message-id; bh=gO6/5ijSzXnepRokXmTnWbPe921o+sFsXHZ3i0oOKek=; b=HB7n4dA6mRzbuUhF6y9LcEDXwB+DfzRQ1kmF99O+6aHI/g0Ttp1zSGEl8V0f+VMY6yvi6RyHR ilyIlcJBc+QAQ8O5Bmis4/cdu2nI9LwjxhYIeY8TFs6DzVDZRHzN+yU X-Developer-Key: i=gregor.herburger@ew.tq-group.com; a=ed25519; pk=+eRxwX7ikXwazcRjlOjj2/tbDmfVZdDLoW+xLZbQ4h4= X-Last-TLS-Session-Version: TLSv1.3 From: Marc Kleine-Budde To fix the coding style, remove the whitespace in front of labels. Signed-off-by: Marc Kleine-Budde --- drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c | 32 ++++++++++++------------ drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c | 2 +- drivers/net/can/spi/mcp251xfd/mcp251xfd-regmap.c | 2 +- drivers/net/can/spi/mcp251xfd/mcp251xfd-tef.c | 2 +- drivers/net/can/spi/mcp251xfd/mcp251xfd-tx.c | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c b/drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c index 1d9057dc44f2..e3c791f562d2 100644 --- a/drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c +++ b/drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c @@ -791,7 +791,7 @@ static int mcp251xfd_chip_start(struct mcp251xfd_priv *priv) return 0; - out_chip_stop: +out_chip_stop: mcp251xfd_dump(priv); mcp251xfd_chip_stop(priv, CAN_STATE_STOPPED); @@ -1576,7 +1576,7 @@ static irqreturn_t mcp251xfd_irq(int irq, void *dev_id) handled = IRQ_HANDLED; } while (1); - out_fail: +out_fail: can_rx_offload_threaded_irq_finish(&priv->offload); netdev_err(priv->ndev, "IRQ handler returned %d (intf=0x%08x).\n", @@ -1632,20 +1632,20 @@ static int mcp251xfd_open(struct net_device *ndev) return 0; - out_free_irq: +out_free_irq: free_irq(spi->irq, priv); - out_can_rx_offload_disable: +out_can_rx_offload_disable: can_rx_offload_disable(&priv->offload); set_bit(MCP251XFD_FLAGS_DOWN, priv->flags); mcp251xfd_timestamp_stop(priv); - out_transceiver_disable: +out_transceiver_disable: mcp251xfd_transceiver_disable(priv); - out_mcp251xfd_ring_free: +out_mcp251xfd_ring_free: mcp251xfd_ring_free(priv); - out_pm_runtime_put: +out_pm_runtime_put: mcp251xfd_chip_stop(priv, CAN_STATE_STOPPED); pm_runtime_put(ndev->dev.parent); - out_close_candev: +out_close_candev: close_candev(ndev); return err; @@ -1808,9 +1808,9 @@ mcp251xfd_register_get_dev_id(const struct mcp251xfd_priv *priv, u32 *dev_id, *effective_speed_hz_slow = xfer[0].effective_speed_hz; *effective_speed_hz_fast = xfer[1].effective_speed_hz; - out_kfree_buf_tx: +out_kfree_buf_tx: kfree(buf_tx); - out_kfree_buf_rx: +out_kfree_buf_rx: kfree(buf_rx); return err; @@ -1924,13 +1924,13 @@ static int mcp251xfd_register(struct mcp251xfd_priv *priv) return 0; - out_unregister_candev: +out_unregister_candev: unregister_candev(ndev); - out_chip_sleep: +out_chip_sleep: mcp251xfd_chip_sleep(priv); - out_runtime_disable: +out_runtime_disable: pm_runtime_disable(ndev->dev.parent); - out_runtime_put_noidle: +out_runtime_put_noidle: pm_runtime_put_noidle(ndev->dev.parent); mcp251xfd_clks_and_vdd_disable(priv); @@ -2150,9 +2150,9 @@ static int mcp251xfd_probe(struct spi_device *spi) return 0; - out_can_rx_offload_del: +out_can_rx_offload_del: can_rx_offload_del(&priv->offload); - out_free_candev: +out_free_candev: spi->max_speed_hz = priv->spi_max_speed_hz_orig; free_candev(ndev); diff --git a/drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c b/drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c index 004eaf96262b..050321345304 100644 --- a/drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c +++ b/drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c @@ -94,7 +94,7 @@ static void mcp251xfd_dump_registers(const struct mcp251xfd_priv *priv, kfree(buf); } - out: +out: mcp251xfd_dump_header(iter, MCP251XFD_DUMP_OBJECT_TYPE_REG, reg); } diff --git a/drivers/net/can/spi/mcp251xfd/mcp251xfd-regmap.c b/drivers/net/can/spi/mcp251xfd/mcp251xfd-regmap.c index 92b7bc7f14b9..65150e762007 100644 --- a/drivers/net/can/spi/mcp251xfd/mcp251xfd-regmap.c +++ b/drivers/net/can/spi/mcp251xfd/mcp251xfd-regmap.c @@ -397,7 +397,7 @@ mcp251xfd_regmap_crc_read(void *context, return err; } - out: +out: memcpy(val_buf, buf_rx->data, val_len); return 0; diff --git a/drivers/net/can/spi/mcp251xfd/mcp251xfd-tef.c b/drivers/net/can/spi/mcp251xfd/mcp251xfd-tef.c index e5bd57b65aaf..ee7028c027b5 100644 --- a/drivers/net/can/spi/mcp251xfd/mcp251xfd-tef.c +++ b/drivers/net/can/spi/mcp251xfd/mcp251xfd-tef.c @@ -216,7 +216,7 @@ int mcp251xfd_handle_tefif(struct mcp251xfd_priv *priv) total_frame_len += frame_len; } - out_netif_wake_queue: +out_netif_wake_queue: len = i; /* number of handled goods TEFs */ if (len) { struct mcp251xfd_tef_ring *ring = priv->tef; diff --git a/drivers/net/can/spi/mcp251xfd/mcp251xfd-tx.c b/drivers/net/can/spi/mcp251xfd/mcp251xfd-tx.c index 160528d3cc26..9d81eeb98432 100644 --- a/drivers/net/can/spi/mcp251xfd/mcp251xfd-tx.c +++ b/drivers/net/can/spi/mcp251xfd/mcp251xfd-tx.c @@ -198,7 +198,7 @@ netdev_tx_t mcp251xfd_start_xmit(struct sk_buff *skb, return NETDEV_TX_OK; - out_err: +out_err: netdev_err(priv->ndev, "ERROR in %s: %d\n", __func__, err); return NETDEV_TX_OK; -- 2.34.1