From patchwork Wed Aug 11 11:48:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 495158 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp4885718jap; Wed, 11 Aug 2021 04:48:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDWgb5FE3GnM73MgoWJmYJ4nSXoUwybwWFLpBsVTRSoDdHXXA+k1V6io0duVXz1ZFhI6QJ X-Received: by 2002:a6b:8f4a:: with SMTP id r71mr80352iod.12.1628682527183; Wed, 11 Aug 2021 04:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628682527; cv=none; d=google.com; s=arc-20160816; b=nzwk1IHL2w64x+7AE7Tb69tiNrn8CI65hlggZXx3HnpfI3i8yeVtCtfr99wLPvfIve WRpPb68FInW5DbsOsq1iup9cI3c2IRBL2lDtsYPd1f+peF+hgGDD8esZQTKYWgT1M4LH s0PkmTWo+qaqu5io+ONtwiDkcM9eaiTYwBKPftxBjYvyfZj16yK5ZjWPe6lTkd3nvPm+ KP4JZD6bPLu7RDqsPyjShwaKJpulp5HoLdoMecqQ2pzmbhfk4iHQdmSIBxfp9D3dw+A8 pR/S8EeZeQJF4/dr8IPt+J0o7kOg1HMPMDv6vLVmUB/QAcJ5v/ufhNKYEkqSrlr0VJdt USmg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HPjQiKeY/Pm3cwK5bLlcgaOU8O6PA1oY+1ashl1tZII=; b=BkRvtFTShjuGp1FzcKsaNTUMUYKLAdFGKeIOVjz3Tu8BCvOW/NTuFOiCBYLoYmKG/Q At5ucCP8n82Xi6yOGBJzSsTyvYCS5POuAFcdHZKlLc4HaLhB1ef/0M83K4tp06q1oyWn wVEBtaRx4Ajg76CRRFGe546WmfkOO1880y8hTZFh/0HmHwpbL6keCZhBaEbjZDuVQo4K xdVUL2MYBQm3Xmp05hy3UHAa2ASihOlo2w6Z38pmO2PFZXjtKeByFJH8i0PC89YQ7XAX vDIypgazxXFZqKKeeKw9g6svnoznnCfmL9bv9wPr1Q7HypLUK7terMdV4VOYKMWAyQOu CpWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IBsFx07o; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si581612ill.92.2021.08.11.04.48.47; Wed, 11 Aug 2021 04:48:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-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=@linaro.org header.s=google header.b=IBsFx07o; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237438AbhHKLtI (ORCPT + 4 others); Wed, 11 Aug 2021 07:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237493AbhHKLtD (ORCPT ); Wed, 11 Aug 2021 07:49:03 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE03C061386 for ; Wed, 11 Aug 2021 04:48:38 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id t1so3282527edd.6 for ; Wed, 11 Aug 2021 04:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HPjQiKeY/Pm3cwK5bLlcgaOU8O6PA1oY+1ashl1tZII=; b=IBsFx07oFf+vCulkJ+TaU4TZ8+TJY7oRmjHzjramGo3IIB07cb0AjF6zdiGjwHYAW1 Tqpupcr9JZsUIoJFv1IAonhPLja4SYBbpCNk3GPYB/qAtLnsD0IiIE6ENOhM2pqkGIaI DlOftRgyt6Bms1W57ULog+ewElYtugxn1FuQZRM33zfR4PP0cjXG1gn/cJpD6Sa2FwZc irT8vkNxP1o74fHgkJXCSPt8ggwKVdCqyPX+/i+Ezu0Tdba8YHfaDLvUnZzFWtmzCevp SS4oLTSxNCSMx15LdVhMiCi6HdkCWUNefTItnCF1Y8977X4crqedED2lFf/7d3JVpwmu 8Kgw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=HPjQiKeY/Pm3cwK5bLlcgaOU8O6PA1oY+1ashl1tZII=; b=WnLcEWG+TTu3yySva4zg32BJffCVvcfgFkrNA430MMvS/3/o5oOns41r3Nq8eT1mXc lpw9NU78VS5GZdGnQyJAAWuxOxlP5I3BKmg6H4+oOQzqHRERdfB5Igq6lbP8tR8tW28a DmNWb0cd8OwRh3wGEBT7z7tDWkaK7Weqj3hjeSFgTEP3DZHN1ZyPIOzvd7QgiFz2EZI9 5Ncn0RIq2/baOQX6Z08j8f5RVMpcF7ZJxIMMI+nhv2p5M9UhSNEegLTQehwwftZsClmu ZjWybS8hwtuJDIQGGG8P9Xke7JGMPpO4jxGSPvLQ5UrR0xCP9qSzK8s8fLRCFF59lD5g Hw9g== X-Gm-Message-State: AOAM531UO7lhOO+oAMN1JYaxG+refrd94uSJYrtK0ttIIEZ9dBc5w2MX nZZoR0yY6r8WDMI2JjAo9jcNkg== X-Received: by 2002:a50:ed05:: with SMTP id j5mr11111037eds.256.1628682516768; Wed, 11 Aug 2021 04:48:36 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id lw15sm8073337ejb.50.2021.08.11.04.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 04:48:36 -0700 (PDT) From: Sam Protsenko To: Krzysztof Kozlowski , Sylwester Nawrocki , =?utf-8?q?Pawe=C5=82_Chmiel?= , Chanwoo Choi Cc: Linus Walleij , Tomasz Figa , Marc Zyngier , Rob Herring , Stephen Boyd , Michael Turquette , Jiri Slaby , Greg Kroah-Hartman , Charles Keepax , Ryu Euiyoul , Tom Gall , Sumit Semwal , John Stultz , Amit Pundir , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v3 5/7] tty: serial: samsung: Fix driver data macros style Date: Wed, 11 Aug 2021 14:48:25 +0300 Message-Id: <20210811114827.27322-6-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210811114827.27322-1-semen.protsenko@linaro.org> References: <20210811114827.27322-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Make checkpatch happy by fixing this error: ERROR: Macros with complex values should be enclosed in parentheses Although this change is made to keep macros consistent with consequent patches (adding driver data for new SoC), it's intentionally added as a separate patch to ease possible porting efforts in future. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sam Protsenko --- Changes in v3: - None Changes in v2: - Added Reviewed-by tag by Krzysztof Kozlowski drivers/tty/serial/samsung_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.30.2 diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index b8034c1168e0..130bdc978e93 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2816,8 +2816,8 @@ static struct s3c24xx_serial_drv_data exynos5433_serial_drv_data = { #define EXYNOS4210_SERIAL_DRV_DATA ((kernel_ulong_t)&exynos4210_serial_drv_data) #define EXYNOS5433_SERIAL_DRV_DATA ((kernel_ulong_t)&exynos5433_serial_drv_data) #else -#define EXYNOS4210_SERIAL_DRV_DATA (kernel_ulong_t)NULL -#define EXYNOS5433_SERIAL_DRV_DATA (kernel_ulong_t)NULL +#define EXYNOS4210_SERIAL_DRV_DATA ((kernel_ulong_t)NULL) +#define EXYNOS5433_SERIAL_DRV_DATA ((kernel_ulong_t)NULL) #endif #ifdef CONFIG_ARCH_APPLE