Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1919479pxb; Wed, 10 Feb 2021 22:30:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtyUg38KhJ/v/aFTGoW5kkxLsbqs1EU+Lh8A/9fV0Fbnx/NGT9nbo73bAxiqlLnc/9qc+i X-Received: by 2002:a17:906:9717:: with SMTP id k23mr6471805ejx.207.1613025004311; Wed, 10 Feb 2021 22:30:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613025004; cv=none; d=google.com; s=arc-20160816; b=wHOQC84c6Csz+v+6XF9BdTcojvx4KeZMriMH8HjRG9Q3KvZCng1s4HY7AVXcDhtmgM 6qWs1RHL1pvU55s8G4H63GdFkPvaQXIFa8BuvkAz9ofUz8xcCoxIUPqBD+xqu3hcWyJL 3FHQS1QJS//zYfNDAIHZLA8DVScL+JD1Y8MePQXSuSAthUwkNOp5nuhjGRfGBTcM2u/9 +pWR6ryLDRj7IXUAs75lcg2ZAnvqwhi/DyMTlPFq+2TLE3Ti7zf/1o7D160cCE2NHDuE OB78+63kmRw9fZvzlugonAZDpTE0AWx+EpWV+mpfmRp5K+AL+9tUxXWj6C2qHpMsioO+ bb5g== 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:dkim-signature; bh=a172++GKBLp4j2cPZ3xSzTWnzK4BLacsMzqqmF8v+TE=; b=xRilx0Mvprmo+YmpHEaX4sgcxmLfJLclz6vcnrIPX58Ai7VTm13T6WOWLjLky8C3f9 zu7iwC87ttIa5pDZqGVz1cDSHRfHYftxS7l58VvJX8q/WN3M/XNcpi0YzobIty6oR1kK DtAZljAIPjMvrIkyh8mNObs/Xp/wdveo/uIwSUj/c8dUVsvHc7+OOtzTEkLo+hm1XZv7 +j7CGQPGCeczOFEhnlhQx0hS2Ub+POJzh7N8DDnSFcG3QIZm419ad85ig6Rq6wCaqzjd uBC5/FM9OskwpS1wHI5uZfZAHo90kQL6AVQhIrvkno7vYHLEz5wl/jlfH3x8uSU6scT/ mM5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WBpA8brY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si2891454ejk.68.2021.02.10.22.29.40; Wed, 10 Feb 2021 22:30:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WBpA8brY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbhBKG0f (ORCPT + 99 others); Thu, 11 Feb 2021 01:26:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbhBKG0a (ORCPT ); Thu, 11 Feb 2021 01:26:30 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F4AAC061574 for ; Wed, 10 Feb 2021 22:25:50 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id m22so6573792lfg.5 for ; Wed, 10 Feb 2021 22:25:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a172++GKBLp4j2cPZ3xSzTWnzK4BLacsMzqqmF8v+TE=; b=WBpA8brY2RCW6NuIzbHlbWFdDzpUcH0uxC8tByIVFAxMDnfaB1GmcSu96JbG2cG++4 Qmm+TEp1d5x5i3XD9b4mPmqa47rUy4qh4nZFQ81VkUZHe2iv4FZ6Sn7vks+65Ud0Wrel hBKhv+cf6FwOFup48Xi4ztNVwIhr21FD/0f9SJ/gVubrqPz+5P6WUagdgvT8yTzbW9hB Nr6rVR06R41X3fYBsRjrdVZccp2UxmfrtNaZRJekVWAxPm/dukdS/wTWvag7hIgLazcI MpjverAgYDmrJI7uMJaa4oOLXsdOUT2Gk/4ONACyt+GViqLlfPI4puvC9+Rfg+13H3Ow vvrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a172++GKBLp4j2cPZ3xSzTWnzK4BLacsMzqqmF8v+TE=; b=TVAfegsu2SRJdEImoDwRhLH/9r2zHQs6cFDW+xV5K54CG4C8UsjeZ29yxeI4ILI7f0 Qv6eUBRI+GBL629FfqrGSS9wB8GgO7O6/iFP0z9vN0gNDImeM2NuRazWIhZm1eQryPQY cnpRCQYulQl55k1wJgCuVizLHbxRl4Azyjv+zDtmpFyfO/kZsnVZ41MRFCgQ27tkEUII 9DGiKT8lfu9sUSb4bWayAXrSK6D9ZzY7cOmUVST9lXpNifdbI6i+o+8aC35YFnndpQrg AZrjcQXK6kZbL3nFQto5fJQ0H0V0+aclLNPqxm8BvuDHWz5h2We0LcgK6rjiaoSZ/Qet 4h+A== X-Gm-Message-State: AOAM531e1iLyHRM99RxqEi1xaggiXhy9N6aF7NYFtZaN2tGAMsclD+8d r4iUcPsR/n4hQXSBaFKSd2E= X-Received: by 2002:a19:9154:: with SMTP id y20mr3460756lfj.2.1613024748279; Wed, 10 Feb 2021 22:25:48 -0800 (PST) Received: from TRWS9215.usr.ingenico.loc ([213.143.229.14]) by smtp.gmail.com with ESMTPSA id l24sm794420lje.50.2021.02.10.22.25.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 22:25:47 -0800 (PST) From: Fatih YILDIRIM To: gregkh@linuxfoundation.org, gustavo@embeddedor.com Cc: Fatih YILDIRIM , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] Macros with complex values should be enclosed in parentheses. Date: Thu, 11 Feb 2021 09:25:43 +0300 Message-Id: <20210211062543.9817-1-yildirim.fatih@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Fatih YILDIRIM --- Hi, I have a coding style fix. By the way, I'm following the Eudyptula Challenge Linux kernel tasks and this is my first patch related to my task no 10. I hope I'm doing it the right way. Thanks for your understanding and kind comments. drivers/staging/ks7010/ks_hostif.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h index 39138191a556..c62a494ed6bb 100644 --- a/drivers/staging/ks7010/ks_hostif.h +++ b/drivers/staging/ks7010/ks_hostif.h @@ -498,20 +498,20 @@ struct hostif_mic_failure_request { #define TX_RATE_FIXED 5 /* 11b rate */ -#define TX_RATE_1M (u8)(10 / 5) /* 11b 11g basic rate */ -#define TX_RATE_2M (u8)(20 / 5) /* 11b 11g basic rate */ -#define TX_RATE_5M (u8)(55 / 5) /* 11g basic rate */ -#define TX_RATE_11M (u8)(110 / 5) /* 11g basic rate */ +#define TX_RATE_1M ((u8)(10 / 5)) /* 11b 11g basic rate */ +#define TX_RATE_2M ((u8)(20 / 5)) /* 11b 11g basic rate */ +#define TX_RATE_5M ((u8)(55 / 5)) /* 11g basic rate */ +#define TX_RATE_11M ((u8)(110 / 5)) /* 11g basic rate */ /* 11g rate */ -#define TX_RATE_6M (u8)(60 / 5) /* 11g basic rate */ -#define TX_RATE_12M (u8)(120 / 5) /* 11g basic rate */ -#define TX_RATE_24M (u8)(240 / 5) /* 11g basic rate */ -#define TX_RATE_9M (u8)(90 / 5) -#define TX_RATE_18M (u8)(180 / 5) -#define TX_RATE_36M (u8)(360 / 5) -#define TX_RATE_48M (u8)(480 / 5) -#define TX_RATE_54M (u8)(540 / 5) +#define TX_RATE_6M ((u8)(60 / 5)) /* 11g basic rate */ +#define TX_RATE_12M ((u8)(120 / 5)) /* 11g basic rate */ +#define TX_RATE_24M ((u8)(240 / 5)) /* 11g basic rate */ +#define TX_RATE_9M ((u8)(90 / 5)) +#define TX_RATE_18M ((u8)(180 / 5)) +#define TX_RATE_36M ((u8)(360 / 5)) +#define TX_RATE_48M ((u8)(480 / 5)) +#define TX_RATE_54M ((u8)(540 / 5)) static inline bool is_11b_rate(u8 rate) { -- 2.20.1