From patchwork Thu Mar 9 08:20:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 662045 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADAB8C61DA4 for ; Thu, 9 Mar 2023 08:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbjCIIXH (ORCPT ); Thu, 9 Mar 2023 03:23:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbjCIIWo (ORCPT ); Thu, 9 Mar 2023 03:22:44 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09E2FE063B; Thu, 9 Mar 2023 00:21:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678350078; x=1709886078; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=k3m76VGZBewKkEU33NbY6qcZRyAz+1m3GJXuwbf9sfA=; b=ZTn75XKTAgUWFkL0SfY1mnyhLBIXK7rutOzTjGWEO0iAzWMGAACWfFbp 0xBaq3rEI3aAGCQPtPdgUFg6PDJSBfW2/v3yM0vvpor5oGQZuIdqqRlF8 PhG8vjMP/QteBp4HJwdtE08C43QihS7FNWwhtDn9Xboy93UNCeHXP4E+M Xis5mr/X0ODdMgQpkqFhRDqb7JLINwn/bKQsAHRzT4CK8+Ohd5WrcRJ5R 9twLrUrFWLPn6Y+QqAQCDcDM544iZytE5sPAyM/BLrhi341zQwNM5GPRx 1kugKG23Aq2yslsdHXlcsSgT00ksNoP/LHSs6KeM9tehNhoSbq1Tx36bu g==; X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="364025818" X-IronPort-AV: E=Sophos;i="5.98,245,1673942400"; d="scan'208";a="364025818" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 00:21:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="787473860" X-IronPort-AV: E=Sophos;i="5.98,245,1673942400"; d="scan'208";a="787473860" Received: from unknown (HELO ijarvine-MOBL2.mshome.net) ([10.237.66.35]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 00:20:58 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 2/8] tty_ioctl: Use BIT() for internal flags Date: Thu, 9 Mar 2023 10:20:29 +0200 Message-Id: <20230309082035.14880-3-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230309082035.14880-1-ilpo.jarvinen@linux.intel.com> References: <20230309082035.14880-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Convert internal flags to use BIT(). Signed-off-by: Ilpo Järvinen --- drivers/tty/tty_ioctl.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index 12983ce4e43e..32ff9959b565 100644 --- a/drivers/tty/tty_ioctl.c +++ b/drivers/tty/tty_ioctl.c @@ -7,6 +7,7 @@ * discipline handling modules (like SLIP). */ +#include #include #include #include @@ -40,10 +41,10 @@ /* * Internal flag options for termios setting behavior */ -#define TERMIOS_FLUSH 1 -#define TERMIOS_WAIT 2 -#define TERMIOS_TERMIO 4 -#define TERMIOS_OLD 8 +#define TERMIOS_FLUSH BIT(0) +#define TERMIOS_WAIT BIT(1) +#define TERMIOS_TERMIO BIT(2) +#define TERMIOS_OLD BIT(3) /**