From patchwork Fri Aug 6 15:21:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 492846 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp423585jap; Fri, 6 Aug 2021 08:22:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ+OpQjgEfG684wMD7tyLmUkoSz92y0RjRSVEHHeQCrLHvvjjmeNTIpYg9raPSZQjhMOdk X-Received: by 2002:a05:6402:2043:: with SMTP id bc3mr13646833edb.62.1628263327839; Fri, 06 Aug 2021 08:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628263327; cv=none; d=google.com; s=arc-20160816; b=fVb5tkWHSf2lKTrmiMda2C6BRFIF0Uo0Cgat0u/TTIVI+eNfCgJYqJt0YAOq8jaP7P kqDKaRPbtnesdyHB+2Kp2X20geDHJpr0YGgV3VtnRmDsAUw9jQygienBrccrWKZYLAuV pUGfuEZhg3AQQQeT1F/q5Y6wZVhti1ZAE9c28Q+YSko9PlHihm+CkbdV8r5xM/W7ARdu Y7Izeuj5P8rIZAMWMvgd2V/dYkWXFq2oaeS16PL/AKGAeJTei6dBfMah5Zqg0Em+pMaW l89ov8mUBCRqWO/d1XfbxjiceZd1zYtz2fzvLeDs8C8H4JLE9AfvWntgMf9YRZSwoJph OgwQ== 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=J1kCCgoXt/RH2VyRBayEiDwtnpxlIkmp9gMMzKnZ2tY=; b=nhAtbRicsJ/rrz34IzBv9ZhexPqW4bmN6RHNRvPvMWqPyysGH8tczp7WOL31dtc52/ 1FdZNmXh2v03H3jzWj1dscgPe+T21nLGI/nwSU1BJF1eoL2gHyQ6YQVaF8YcD7gP7Y9Z z50v8tdhi/HHFwgzTLSpEx26UNvXb8DiXmxItxGr4FkGcFMDQ8dfNJT0/l4mXOWEg8At 0FsGSY1q8atIlEmdxsFaizhK1IAA2OA+uUeoiPrd332tkU3caoEOLAtcn/HOOF7tbCb9 vqYnoJ4Sh/P9QgMG8b6TYSdf4TAj1yNGztlHKawbdw4DAMD44vxBWBPjvgl8y6p5VLD8 puQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gTKdWZTG; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 u15si9530543edt.211.2021.08.06.08.22.07; Fri, 06 Aug 2021 08:22:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-serial-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=gTKdWZTG; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 S244526AbhHFPWV (ORCPT + 2 others); Fri, 6 Aug 2021 11:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244400AbhHFPWQ (ORCPT ); Fri, 6 Aug 2021 11:22:16 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FBDCC0617BD for ; Fri, 6 Aug 2021 08:21:57 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id c24so15321698lfi.11 for ; Fri, 06 Aug 2021 08:21:57 -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=J1kCCgoXt/RH2VyRBayEiDwtnpxlIkmp9gMMzKnZ2tY=; b=gTKdWZTGrq0nkIjUWSQPn/d5ZzZ3QDECPUQd4NMQL76ikDODLNIB29E9+uxjHaiZaZ QYknqk3wRZTH9ky1MsXU76Kj1EyvNEcgNYTRNBR0D8796K9P1di9lJA4DsRcX+Wz0sE2 +/AVYm5a+YbbL7gFe3qNVI485mAkTJGiM0ThXfA5DSdQB9d8zuLxMzz7zHG7yqIyoOBl 6Sf6NM/uBUwsOAC2iSzEevFDDgnzXJ5jPJDYp1ke/nC4a6yEqMyVZAqa962W3cm9Kmt5 QUIqpkShTrlGeD0Z3PH0Bq1nHCG8G2RaDuNM+IER7PX760GzZuEy0niDMIJmBT4lyJOT ZnTg== 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=J1kCCgoXt/RH2VyRBayEiDwtnpxlIkmp9gMMzKnZ2tY=; b=WXbuMUjhTeHQysuZ8U+zoxXD/coxQx+emqeH5UMFMyOLfwjLAD6Ef0J/kfpyV+R+lf FEAliuNffJ3gyjd35HZZjApau91RtfsCy/o6skO/ePatlem5KTdcd4kXMhMUngnbZ3LM TnzWslfWeqEQ4GL8l3OynlfDfXFeSAsWh39jzgfvgYFRtL+e6Wdm0UkfIhYgM93ntGOj HfzuvnE2rGG1lnY1L0fK0e+pPVvVX7fleZrEZAckzPsyGXZnioz/UeL9C9XLz00N6axU nFIYX24qI9mXUW+TPK2AMoN5fGw+p4ZyC17LnRtkx9lvbqwoWq9wG6zR0taH8HTbSDH5 f0JQ== X-Gm-Message-State: AOAM53341d2gkpeIuLDgJy3aqknu+Mi4oinu55UZ66nXXCbd+PMh4O7A c5WR93sipjxxTngtEnxjb/jlmQ== X-Received: by 2002:ac2:42d2:: with SMTP id n18mr3695877lfl.505.1628263316001; Fri, 06 Aug 2021 08:21:56 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id u9sm861444lfc.278.2021.08.06.08.21.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 08:21:55 -0700 (PDT) From: Sam Protsenko To: Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , =?utf-8?q?Pawe=C5=82_Chmiel?= Cc: 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-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 5/8] tty: serial: samsung: Fix driver data macros style Date: Fri, 6 Aug 2021 18:21:43 +0300 Message-Id: <20210806152146.16107-6-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210806152146.16107-1-semen.protsenko@linaro.org> References: <20210806152146.16107-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@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 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