Message ID | 20221110004450.772768-3-gsomlo@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp646428wru; Wed, 9 Nov 2022 16:46:22 -0800 (PST) X-Google-Smtp-Source: AMsMyM4yZ7fRMeOz+dtp1KpZxJkEsc7ATg+ZJq6QlnQ2HxypeGBDB0oeGBL6k166HdIMJcmLGeHk X-Received: by 2002:a63:5341:0:b0:46f:d05d:55cf with SMTP id t1-20020a635341000000b0046fd05d55cfmr44624736pgl.356.1668041182511; Wed, 09 Nov 2022 16:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668041182; cv=none; d=google.com; s=arc-20160816; b=pDYFaIxWZ+ZsKJsnN2K7NiY6mc9K3ECE5P83Pv3jIwVXXrA+YzXbkKre+ngdLt6TxT H8pScAKtJfigpgaIcr04wjDCJevWW9kLjbrTerlXg4iUc90IYjBOn6dzox8W7yrH/5Lk Q2FBqB6GIRZ1XjwyiPFYiZF4EKaQ/Imuc8/vfsWxC2ozOqckSs6UjOg5iwqQZktueCnZ kNFHZ9OyEtdJK9FWqgOiKoMVfsqDnTVEfdXpPT7CF1ih7SxpcZyfvKD7IwFDCicoeiPK adzjupQElSOR5wSd6cTA+Ga+5fOv+xh6AnppzmvzOyJeVtw7fX9eZVqY04oY/Fs92Rva mcPQ== 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=h9s8/P3zcC35a/7U8wwUtQnHUttoN7Pw9xSfTjSoDyA=; b=AnMKSzAgVY7Mdv/rd4rMSoXhsnb4gMMcx0yNBy9YZFo918aiJgf5cUx0L4aQsJ3Wgz dfLujPqo9xPlWNo1KHcImqINnK/x+JkvzWN7KsnvO2+ej1qWSsvSMLtKpMHWJY6nMdKS 4KHEv1O9SfITY9kVhiSqZa/2KOG/6eWQYO0Y/u9UAkqnQlrzIEdzCM7NFt/lpYkhKFYH zDpsD/PBgJkz+hy0avst6M/AKQ9iWivQD7Z4svPUE2AHXC1OZBqfDQj19+iLuGWy+Yt9 hbbuz6mQWUmkIEn99rmfDCYhD686UKQLZC8fVpX76Os6U31Uo867Wwa0nT1rPqKUn3PY MwRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="hbOdGCr/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a170902cecb00b00180a7ff784csi21431220plg.360.2022.11.09.16.46.09; Wed, 09 Nov 2022 16:46:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="hbOdGCr/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231933AbiKJApL (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Wed, 9 Nov 2022 19:45:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbiKJApD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Nov 2022 19:45:03 -0500 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A5E711A38; Wed, 9 Nov 2022 16:45:02 -0800 (PST) Received: by mail-qt1-x82a.google.com with SMTP id h21so209507qtu.2; Wed, 09 Nov 2022 16:45:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h9s8/P3zcC35a/7U8wwUtQnHUttoN7Pw9xSfTjSoDyA=; b=hbOdGCr/K0H7cTvzahxLz/afXIjxiMYM/7EfCCehv5O3BPGDT+Pfj+2RLo6LdQWP6f ORJWdJV6UoxqD/U6Sv/BEXCXhBj4XhOrksXCXxGDeiXmbXsN/lAAHM0d2MtSWhVZ/bxS DjYFG5sn/RVkWQ5QWsirOa2PN9Mtsx38qQtPTMaJ4IUd8fJwQeCH8RcpfgPz/Mr5g6Uu aaA8NEcrTsqlr6nKr8YTrH8HVnUMCvFZdbtZyqgm68NZ4c/qpli3NUl46PMM8L0a1sGe fteOcePpTbsx8DqZqReNv7I+HgIYG6Gz6u3yJ11UGnqTQ0v0gPehmfae251RQztU/Ko3 gokw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h9s8/P3zcC35a/7U8wwUtQnHUttoN7Pw9xSfTjSoDyA=; b=trFq+DxTV2m+Y+3QPaGDx0rHFzcotDkKwVIKZqmQM50SMgZd87SrWiioH+On07zqXp 6q4o6g91C8XPBnDnrm/YJAE4EhtBETtJpFLMAwwI24jSS3+/SEU//j2Zaran08DeIZ5e hZjsYCfgnZxNLtyGxFsYuFFPfaFyUsLXcxShhWJOs2L1WumGMChFoavsAAZcsqSvHSkG 8HkUXoTt+u9IgSTtwqUAQyaq0UQWWvUKw3x7S+aXeJTKrszbZ7GppA2QY0pUN8LqOoPg J0D532X5UwR6G68WyzsBWDBoYk/UhXvi4ux3UrahpDKrHBz+VHZwc1tmm9QRF4T6O0g3 5Rgg== X-Gm-Message-State: ACrzQf1w4Nw7npYd9NkH1ZSEwFgP0ZNpeAguYwu0tZ6m94jnV1ATrtPW j76ZCIAyEZDXXTcQmXnP5Gzai7Mf7LA6Ww== X-Received: by 2002:a05:622a:116:b0:3a5:7422:112 with SMTP id u22-20020a05622a011600b003a574220112mr21434198qtw.429.1668041101489; Wed, 09 Nov 2022 16:45:01 -0800 (PST) Received: from glsvmlin.ini.cmu.edu (GLSVMLIN.INI.CMU.EDU. [128.2.16.9]) by smtp.gmail.com with ESMTPSA id x1-20020a05620a12a100b006eeb3165565sm11678506qki.80.2022.11.09.16.45.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 16:45:01 -0800 (PST) From: Gabriel Somlo <gsomlo@gmail.com> To: linux-kernel@vger.kernel.org Cc: linux-serial@vger.kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, kgugala@antmicro.com, mholenko@antmicro.com, joel@jms.id.au, david.abdurachmanov@gmail.com, florent@enjoy-digital.fr, geert@linux-m68k.org Subject: [PATCH v2 2/7] serial: liteuart: use bit number macros Date: Wed, 9 Nov 2022 19:44:45 -0500 Message-Id: <20221110004450.772768-3-gsomlo@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221110004450.772768-1-gsomlo@gmail.com> References: <20221110004450.772768-1-gsomlo@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749067951129172598?= X-GMAIL-MSGID: =?utf-8?q?1749067951129172598?= |
Series |
serial: liteuart: add IRQ support
|
|
Commit Message
Gabriel L. Somlo
Nov. 10, 2022, 12:44 a.m. UTC
Replace magic bit constants (e.g., 1, 2, 4) with BIT(x) expressions.
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
---
drivers/tty/serial/liteuart.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/liteuart.c b/drivers/tty/serial/liteuart.c index 32b81bd03d0c..1497d4cdc221 100644 --- a/drivers/tty/serial/liteuart.c +++ b/drivers/tty/serial/liteuart.c @@ -38,8 +38,8 @@ #define OFF_EV_ENABLE 0x14 /* events */ -#define EV_TX 0x1 -#define EV_RX 0x2 +#define EV_TX BIT(0) +#define EV_RX BIT(1) struct liteuart_port { struct uart_port port;