From patchwork Tue Sep 14 14:23:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 510930 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1595288jao; Tue, 14 Sep 2021 07:23:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywvxgQUQJuW2yyIeaHNzednV5X/InM8AE8cA21/h4B0EkT03dmxhAN5MGHU0QzPuvylTw4 X-Received: by 2002:a05:6e02:1d0c:: with SMTP id i12mr1453019ila.209.1631629400739; Tue, 14 Sep 2021 07:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631629400; cv=none; d=google.com; s=arc-20160816; b=PEt8JyDfAazvh7aqJ1ai58eI3GmhszmmDr2CPJ2O/V4TxHl17IcX1mSN/d4VdPATJC +Oqqx/9+zesysNwqBbyLN3lW1lDLcfGkFSNy/8ighCtoK3aQd6c9SoIRGc1446nxYFKF 4tEhe+gr5I5TLZSwEyaVZkX0xyxx1QgvK0ojSaeaccKBvZ4AwzH5TDgzOw+GbBnlOMQb 4qFGTJz2g+mttTX5Ij23rgHoLp6sdpNo2ZPyE11rnSziPd/ESJS1NZmOK9qhdxS3ORUC hnJmKastPfiK78alI3u3EpxibLx/JdZIehBo2bUZNuiVACrz06kql/rhsyVE+LpzhAB8 bnNw== 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=JujpZaikMMevY8hhCqH/hKO/zBJYMZ/j4U4Qz2KhW34=; b=gNGzAwgP+kKZ+ZvUkHiZbEuuqnfw5ZUhpt5PpyES8hBRm0Z2LEZsVmVbTqfVOPyYrF eI7uayGTlyU7Mc9J0fCKvtibC4UgEjSXo9mfmMo8J/gWcpNtg8eyQRVE++pJRwDbm74N qOG/rW974bipyjQ6RFA9tXtK41CY3f/I1R+z0E2xOGMcHO8x9nT7uHI0ed9/25PZJ86b 9P1E06fGczojh07DEah4i0Ex9mBqwwv9XfMQ2XytvDZrn50J+AH+3mCeD1gS140dlv10 pkEo0aZlZSb72x4zjkyc4nn/osoO0hUAR/z5AVVaQPKW2MmZVsr6zxnGn1n5ar5zK8fu grdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sbR73ETH; 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 t22si10337666jao.55.2021.09.14.07.23.20; Tue, 14 Sep 2021 07:23:20 -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=sbR73ETH; 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 S233572AbhINOYg (ORCPT + 2 others); Tue, 14 Sep 2021 10:24:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233309AbhINOYf (ORCPT ); Tue, 14 Sep 2021 10:24:35 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28737C061574 for ; Tue, 14 Sep 2021 07:23:18 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id y6so24260960lje.2 for ; Tue, 14 Sep 2021 07:23:18 -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:mime-version :content-transfer-encoding; bh=JujpZaikMMevY8hhCqH/hKO/zBJYMZ/j4U4Qz2KhW34=; b=sbR73ETHcJ0IxzzKe6OUCJ2Hs5twwz2oM13CzLwDXbh20/HlWA0gf0Cr/MTPpi4UOH fR3aJBjQQuTvFplnFmUiKL641yJPmwkTsaC/4ur99YPYrXuJUtd+vqI9sDp8ZRGI6/7D gxP1YQkrAo+NclbHesmraGMjIICYArX4QkOG8RoaCYuJV0LSqkB5adT1OImlBK4idWBg FOw7uqAEWCgmtMAHkg/eQLkLNMZnFv2TOivrbAcEYSdqx91YsfawPko0yiTQHgddJ7PN SOgKBQ77pU35/mXcrJeuTatWu8hCqsnmEzRR7R0apmmuzr2XfxqkXdU8SJGhTmmgGBXr P+1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JujpZaikMMevY8hhCqH/hKO/zBJYMZ/j4U4Qz2KhW34=; b=T9oggwAiy8gDF74NQrl0HlquM8SDYA8rMk4gyVLBWH16dTA+zcsWOhReOzjGLW+Pia O/xnPEjk9Q2F3SCG6yBZ5jh7ryzj7GOfp+7r3uBSAJRKIicJe5Fy2/iPyXOfCWW/4bjs W52r7n8YSipmn9TZEBkI8EypdSrbbFDPO6IgxG2ls4G1zFz3v0I7WJUn5VmScHLEYpPV fdmhoguPkUUHsyWWCmEgX6+7unZAVO94ptD6OlfhIQptNs3ocaudrUGFFEUvxYlZAy8i MpugI3GnQPAREWuukxFYs88UjygNInazD5T67vTvntTBWMKOybSiCou8arNt3VCLIzEZ YZBA== X-Gm-Message-State: AOAM532w5apv6qadkRW++E5a/SwgWclyC7Z2Y9GCh3BnDoGbSB2VWBMA wKhS6wUmxPsSTPJ30JBJ/i+WBw== X-Received: by 2002:a2e:b894:: with SMTP id r20mr15175355ljp.291.1631629396573; Tue, 14 Sep 2021 07:23:16 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id k12sm1318078ljm.65.2021.09.14.07.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 07:23:16 -0700 (PDT) From: Sam Protsenko To: Krzysztof Kozlowski , Greg Kroah-Hartman Cc: Jiri Slaby , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] tty: serial: samsung: Improve naming for common macro Date: Tue, 14 Sep 2021 17:23:15 +0300 Message-Id: <20210914142315.26596-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Having "_USI" suffix in EXYNOS_COMMON_SERIAL_DRV_DATA_USI() macro is confusing. Rename it to just EXYNOS_COMMON_SERIAL_DRV_DATA() and provide USI registers availability for all Exynos variants instead. Signed-off-by: Sam Protsenko --- drivers/tty/serial/samsung_tty.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- 2.30.2 diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index e2f49863e9c2..542b7e2b99dc 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2780,7 +2780,7 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = { #endif #if defined(CONFIG_ARCH_EXYNOS) -#define EXYNOS_COMMON_SERIAL_DRV_DATA_USI(_has_usi) \ +#define EXYNOS_COMMON_SERIAL_DRV_DATA(_has_usi) \ .info = &(struct s3c24xx_uart_info) { \ .name = "Samsung Exynos UART", \ .type = TYPE_S3C6400, \ @@ -2804,21 +2804,18 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = { .has_fracval = 1, \ } \ -#define EXYNOS_COMMON_SERIAL_DRV_DATA \ - EXYNOS_COMMON_SERIAL_DRV_DATA_USI(0) - static struct s3c24xx_serial_drv_data exynos4210_serial_drv_data = { - EXYNOS_COMMON_SERIAL_DRV_DATA, + EXYNOS_COMMON_SERIAL_DRV_DATA(0), .fifosize = { 256, 64, 16, 16 }, }; static struct s3c24xx_serial_drv_data exynos5433_serial_drv_data = { - EXYNOS_COMMON_SERIAL_DRV_DATA, + EXYNOS_COMMON_SERIAL_DRV_DATA(0), .fifosize = { 64, 256, 16, 256 }, }; static struct s3c24xx_serial_drv_data exynos850_serial_drv_data = { - EXYNOS_COMMON_SERIAL_DRV_DATA_USI(1), + EXYNOS_COMMON_SERIAL_DRV_DATA(1), .fifosize = { 256, 64, 64, 64 }, };