From patchwork Fri Feb 25 11:23:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 546413 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 EA9D1C433F5 for ; Fri, 25 Feb 2022 11:24:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240086AbiBYLZZ (ORCPT ); Fri, 25 Feb 2022 06:25:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239859AbiBYLZV (ORCPT ); Fri, 25 Feb 2022 06:25:21 -0500 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2056.outbound.protection.outlook.com [40.107.100.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CF8B25314F; Fri, 25 Feb 2022 03:24:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BloQQEUvdjbSvBAdK05vBZRjwgmFqdGh9jeswrv4uuEFqBcQy2frNt+mcAWYVa1rYw80NaXuBFE36cDb5l09jtnUyKlm3cBknFoC5j0CRfdBzO2FijtU/yWszijawNtmDde4OeLsLHDhj9frU+WQU13lr7iaBdFiutuWgDvqYAjkSGINbUeJeLkJY5MFMybEFxxmk87srm/GHH+mi4j4yPTZYk+Dn9UNvDxj7svoGqSvmNMSBAk8LN0Ldp7yByeb7Z2qjQEbhem2oquKf706jqBaSSlmZgzd9UbkdvQo/lEY9tpPSpP7PHkBrCU+jznCV5tOsHj8lkfE09pGg7IJCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aw5J+x9WmNrQK85UXgLKbBaVcp0mTbgxGqM4PrVtJbQ=; b=DIfRPF3HbbBWnmKwuqAMG6DmKaUg1tUVEA0DWb43nqEyCNWU+b6FVCJwzyoRhrjY60PnTg/oG9Q4FgfE4BnzMHeLPpAxx265/o8lYACa+D/wqSGCW9gWqRc8sA6aUO1a19XTRDqL3ON6W2bkKtlVxKOWrGfPrZfM0ZCMlXXWgEEVIkeKseu7igODOzjGmh0ZON4VUHIXDzWA3RWiA0RgDycCBvtin+CemLyI5N6zihkAcH4dxeoy0cGgRD2fKWxj/3JUSUvPM+USn/hzXjKkm3sQaBdqVWXmdCFxMWD2DYK9DDlwBfFUTwDR72Fy7dxR40Gg275LTcb2kyxEGplyFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aw5J+x9WmNrQK85UXgLKbBaVcp0mTbgxGqM4PrVtJbQ=; b=Tvo2lB6BXDwL0Wll+2JmDPIM5mmX5qCCaVuxh0T+OoVe2YXEQvHkuYjcoOwgs2Gn+dmFq+aVkB0nzIrw2tpQI2Y4U9KqeIhJOre5el/hFLclW7ctCOvCxmKTQzdhEWrZ4T47bTvEhCWx35SZvIjljCrHIYyHhzWCDZyP+NWZXYA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) by DM6PR11MB4362.namprd11.prod.outlook.com (2603:10b6:5:1dd::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Fri, 25 Feb 2022 11:24:41 +0000 Received: from PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::dd2e:8a4e:fc77:1e66]) by PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::dd2e:8a4e:fc77:1e66%5]) with mapi id 15.20.5017.023; Fri, 25 Feb 2022 11:24:41 +0000 From: Jerome Pouiller To: linux-wireless@vger.kernel.org, Kalle Valo Cc: devel@driverdev.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , =?utf-8?b?SsOpcsO0bWUgUG91?= =?utf-8?b?aWxsZXI=?= Subject: [PATCH 02/10] staging: wfx: fix struct alignment Date: Fri, 25 Feb 2022 12:23:57 +0100 Message-Id: <20220225112405.355599-3-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220225112405.355599-1-Jerome.Pouiller@silabs.com> References: <20220225112405.355599-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR3P189CA0052.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:53::27) To PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9933a11-877b-407a-54e8-08d9f85168f7 X-MS-TrafficTypeDiagnostic: DM6PR11MB4362:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9mc2nP4yoyxUqk0RHwN88RLkwOrSmYRx7SRgpGo+xuu8wwHuki/qHiE7KNxyHSXd0guGC4h+jbBtlS6CsdT6e/vpWAEHzOY9b2IuQUKYcStmmCjunU6vwdRvHTJdscOVHuXqbkuNFYvTpm0Yd/e7bvD6g+gJ4gs20RyBZmvSAxp8aC146jF5B4fPLHr36IzcowDsVShMfzYUo9A2JuYMKX0jmc4iMVSLpQRPNyJQ3n3wHNRb12egmbdjau/g4Ar+PlP0vhD9rFQgQyHip7/FJ2TF69uh7ziGPeP1Ps+SKNuFggltiAGteZJS94gjlUlGxcda9e3IyMq7wdqPImGfckanvKw7NkyVhp+LLZaYZx19rHd41UWinTRC1LyDy1N+oGDLisb7DHE0vybGn3um5X8+BTuQmf4zrUbOSAy7sFg6Sn/qrZPWdxMVKBVo4RIzKJsnRuZXOZmD3KuxRF88rpXdRWDcT5wMjVh+10vpPCQujifZUwrojcYCxKBjL852SQr4TdeVrXjRFEULnMOyvscSa5+Dw7KvlPC4ifV7OE/tCtXa/Q7vUQOhPdQBN9nRA51ldBvZj7XvcN8oMaF1vlASlor8Zaq8fyLFnUA1skTPaU8Kj+GWZPz60cI/qqhAVXDBwYUfyJYGbQO8OWTYgCR/Ek/YoqBJs+J1qt7aaAUqM0hCA5ve2pE4g4ja3OEdrlmVBBfdhKF7rdATW8bn3fVItk03CIJUQf11KQamij6cLmBo3fJ4agELtiNEqIbh X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5657.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6512007)(6506007)(1076003)(66946007)(52116002)(8676002)(2616005)(26005)(66476007)(5660300002)(66556008)(508600001)(2906002)(83380400001)(54906003)(38100700002)(4326008)(86362001)(6486002)(8936002)(186003)(6666004)(107886003)(36756003)(316002)(38350700002)(6916009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?EkbFE9NzifGj6aLC524cPBVjOLGe?= =?utf-8?q?LlIAkc0vIUfi+RrHqS762rPDJMgakaSFGSjs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990HV1Im4ccGkA0cXWjk3?= =?utf-8?q?UQuxauXMBPLt0j1lExrSQwhPQ8uOoNsndAK6iq1zk4e2svRrHAZUewyyBbID0Vtmc?= =?utf-8?q?Qu8mliyv2R/PILFaGzDY+tGFikcfnFVXU5LvRRPNWxt7ZAQGE/hQKayZiKbEhlTwB?= =?utf-8?q?C/O9LOag+gQ72c3qkcOnWvvOoXCMCWvnpUSX2hpVg0hr11ktOdPmkURgknu7e2W3o?= =?utf-8?q?/HBCDbJD13ZC2juH575hXWfwvJlVUildfFl/EJ7c4v/AXyoUtsE+F1YirSmUkWhue?= =?utf-8?q?lDQjkZewPq58ANfubcu276hBbX5HomojSykbm6wyjlkKgWHd4o95W5nf3+I0dhjDs?= =?utf-8?q?SDMSgiOCOz4afPaBz2zhDCMbBkaOo9ZuYMFoac4qL27Y3l7h1z8T5OsI5EFk/0yxW?= =?utf-8?q?9uhIreobQthDI9laNm1rB1qqJ59cR37FN7qRtxBVF16w/DjugmaspmRr5sh58Hxyp?= =?utf-8?q?er0fAxilki3AVbBlY6Xg68Kc2VjYGHRL/cQJNQIJUUXthpg+1ELmfTrSw9eLr8tIS?= =?utf-8?q?1CmAWZZYR5CnFrRH0YA7Mn8ynCSAQmq7Rhm6iOA744/xAtmlpfwihtSUDlY8VckTc?= =?utf-8?q?MVTGasFnfLiMLcfHyWXrXDg/F/rYs6ZVDXHU8I4aX2HkrabzEv20FLM=3D?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9933a11-877b-407a-54e8-08d9f85168f7 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2022 11:24:38.7964 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jpG/cEnxn0km1ldQADCooeStKrLyRvpWxkh5h4ospj5PzvkGOlVdw9L6L9+KA794Htnx+gwonODlrSHFztG7Kw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4362 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller There is no reason to add multiple spaces between a variable name and its type. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bus_spi.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/wfx/bus_spi.c b/drivers/staging/wfx/bus_spi.c index 062826aa7e6c..a0a98c074cb5 100644 --- a/drivers/staging/wfx/bus_spi.c +++ b/drivers/staging/wfx/bus_spi.c @@ -65,14 +65,14 @@ static int wfx_spi_copy_from_io(void *priv, unsigned int addr, void *dst, size_t { struct wfx_spi_priv *bus = priv; u16 regaddr = (addr << 12) | (count / 2) | SET_READ; - struct spi_message m; - struct spi_transfer t_addr = { - .tx_buf = ®addr, - .len = sizeof(regaddr), + struct spi_message m; + struct spi_transfer t_addr = { + .tx_buf = ®addr, + .len = sizeof(regaddr), }; - struct spi_transfer t_msg = { - .rx_buf = dst, - .len = count, + struct spi_transfer t_msg = { + .rx_buf = dst, + .len = count, }; u16 *dst16 = dst; int ret, i; @@ -101,14 +101,14 @@ static int wfx_spi_copy_to_io(void *priv, unsigned int addr, const void *src, si /* FIXME: use a bounce buffer */ u16 *src16 = (void *)src; int ret, i; - struct spi_message m; - struct spi_transfer t_addr = { - .tx_buf = ®addr, - .len = sizeof(regaddr), + struct spi_message m; + struct spi_transfer t_addr = { + .tx_buf = ®addr, + .len = sizeof(regaddr), }; - struct spi_transfer t_msg = { - .tx_buf = src, - .len = count, + struct spi_transfer t_msg = { + .tx_buf = src, + .len = count, }; WARN(count % 2, "buffer size must be a multiple of 2");