Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp673567lqt; Fri, 19 Apr 2024 07:18:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUywKgxQZkiXSJZV6xLv8Rn05XlXiJWBjZRuyjWkCnC6vD+oVRQFKq7+7UCBN0d0MpqopnKeanvjHau3xtEu4KSweAFbya5g3tQW2HcFw== X-Google-Smtp-Source: AGHT+IFzY5s5n0ZVPa6aPJWMfjRbsZc9BA1XAyozFZk/kNqAB4BLvAv/kU8crtqSWa7xifb6v3XC X-Received: by 2002:a0c:c709:0:b0:699:45f8:dbf1 with SMTP id w9-20020a0cc709000000b0069945f8dbf1mr2181136qvi.22.1713536281084; Fri, 19 Apr 2024 07:18:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713536281; cv=pass; d=google.com; s=arc-20160816; b=X/EiqPq9Y7TJyB7t29QPQ8fGRqiVxWzHAZ6kP2hzfoFF1Hi+xx4qSu/S5TUfrj8JVg nexgblrUUnteZ3EwIwusivZI756jPBJTX4jqmKjaD8mhwiS8lcsCd8xn4cJuKbimUVDL Z83HrA+rWszelbrZoPMvNYVTOcfK8WmWxBKoJuHyu9wtC+RRQCgL/tlWQ/wQMTVkba5R xvEqaEbYmfo22UMe57S7Z4Fc7s3v7avlUa57+LYhQZujwuhQuhQyOHujbFX1UQZHEHOn ID/mkKpvLldQmhl4XKYJ2IjFs2jW+AwdnuSIYH80mYddDEkZcNPWcBhohkcFwXNiw0zZ Qf4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=YqqvPxv1B8DJWco4lgEqCKwyKGylD23VurZSNiTLfx8=; fh=PIfW8Gffhg/ahWd5eelABSqIKWO8qzgYDIdLE9MhLx8=; b=ByuB7mKhsQ4dkxxIrA9EYmYm7ldWAxFiYe6kTyPs2VAAyWc7aBRDWn9EeqYllZ+BGP dmdRuky5eCf3Pv40Vg0nO0HdPAnvh5ct6zegsCNYcYAzzgZKvKuc72KQLfQnFYuxCnX+ jz4x9C80WoRrUBrFVQIz5lTie9033fC2mV5/XIaeS4Rqjx386vj26+9BlNuPYRbXqqCV FDlzL1THtX/f4GgHVfg8RcbZShwA2lAa4HO+Inwu5a8VTMtmCGuOEOGDLx9Pq8qJlqSv pSHhGGpVSpFy0kpYW1EGfoXwrTtLn0uJfHhwBrh0ZQsx8UyGWWRelLnAdPZ2kmDDfX87 hQsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@finest.io header.s=s1-ionos header.b=F27+akl6; arc=pass (i=1 spf=pass spfdomain=finest.io dkim=pass dkdomain=finest.io); spf=pass (google.com: domain of linux-kernel+bounces-151571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151571-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q12-20020ad4574c000000b006a06b5c471fsi192489qvx.361.2024.04.19.07.18.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:18:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@finest.io header.s=s1-ionos header.b=F27+akl6; arc=pass (i=1 spf=pass spfdomain=finest.io dkim=pass dkdomain=finest.io); spf=pass (google.com: domain of linux-kernel+bounces-151571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151571-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 44A4A1C2153A for ; Fri, 19 Apr 2024 14:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C15BF12E1DC; Fri, 19 Apr 2024 14:17:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=finest.io header.i=parker@finest.io header.b="F27+akl6" Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E57912CD9C; Fri, 19 Apr 2024 14:17:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.208.4.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713536252; cv=none; b=bX2c3qNyyaDAc7CX/yNH4my60Dai3MYNW2FMAkKpx6PBoGg+4U8L/weSPAWT+jlzlmIOdYCQ4xpdoWsRIpCk/fOfhK+7lTI2M4rShCr6iB92AjqcNutB/drF/c5cAG2sRJsVhLuWTVtC8aefojDhlbHBiwxU+w0eMbQPIFVy0s8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713536252; c=relaxed/simple; bh=HZJYsLSJO95Bda462oEdjVbzym3pJBr84Yzl4diz1Zo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NKAEzUDQrYaSvSgjLW+vigImQ954GaofEcVrpFp1t4xqVIaweQTlEYi8UoZRNFugNC3OmzThhyvHwcWsW3ofZP7BiCqxc6xJgtfhRc9vzGbu2ENK03/+7uTxXU20fqNdgMUYc8Vgh0hGSrQ6eFAGw+LwwSAPiH1qkgVI+oC3WFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=finest.io; spf=pass smtp.mailfrom=finest.io; dkim=pass (2048-bit key) header.d=finest.io header.i=parker@finest.io header.b=F27+akl6; arc=none smtp.client-ip=74.208.4.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=finest.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=finest.io DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=finest.io; s=s1-ionos; t=1713536244; x=1714141044; i=parker@finest.io; bh=YqqvPxv1B8DJWco4lgEqCKwyKGylD23VurZSNiTLfx8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-ID:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=F27+akl6Altf+hlTr/3pT0wqU/+auQzcceKSHhbkFyvam7DdyBqHarvBlASC2EHA fYxezS/1oYkMWzQFJESXB28RNKWsndgggYC5/ZT+dtghKcHK73HlV/Twr7tmkSRCp oUt/J+tlfugKJ8F67ddo325a8J/QMERIQ7t/0alT2dqMpGfU3yZ2j/Fl3sVcKvvHm zjKCJKwfE3I/GMJQ011vQrwqP1Sf2YGyeHsCr1nVkyLV+uC6KUN2LFbKwY5QlN7Lg DaRkyT5HH3jI+XbEVpCRB/jmz0el/3PH9rYX/BiE3qeWgMKk2auqfVnhHDyZIB3Lt o+vwHgNWSclaDO8+tQ== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from finest.io ([98.159.241.229]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LvlsI-1snWS81UMu-017SbY; Fri, 19 Apr 2024 16:17:24 +0200 From: Parker Newman To: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Parker Newman Subject: [PATCH v2 3/4] serial: exar: return bool from exar_ee_read_bit() Date: Fri, 19 Apr 2024 10:17:03 -0400 Message-ID: X-Mailer: git-send-email 2.43.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:xzqVBhCqb/U6CtNR6GG3MzefvOY+ONp/ikI1kv8y6i8PTMvBMtq fbSB1bte7QZ1aWW7jOxQox9G3ilqoVb8j4wDXph2la30vdK5XRDSR8+k8RO10YXEd61E5Zi 2MXMUcXfZY/Hs/Eeq4g5fZ9sub9EiaCnviIJBN/D7F5+/ZDQu9gAVC0tfobXG6Voi2urrXd gGL7nWqy3CXK8m17NFAng== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:3/ULcuGN6sQ=;CxQJ8hjwFj2I82WMAcdKm0RXpjM u6Ef/vHIpgyjvEVfGcxtEdMDx7CnYWP/hhdSFnJlGxiUETGW/lTMGu8Srxvzw0QZRzfdnBvzA QotEgQS7Qjt8GFlljkyiVk7zfRNneCQUEzIK7mrHAgVIwxF+qxq7m/CW73Ug0+JytWzd2NMkA 4p8py1nE9QYpx+UB7/8KzaHUpVIf9hag7xD9dZmskfa7kMuDQkdP+hCiCXBKRmoaz9NxuSrrA hwnqZiq6CmHmwx5a1DHNPiYvTjX8GNFvpoon3OY/vpZPdOTfXcp0/H8bvHe75NzhpnZYpJoaX HREU/ZipvResBHOkMjuZwfmXGUkWGMW7qXQ8d3AD2x+pKlli+S64KbdnW7pkGZf2mN3rDIg99 H1Til+E9oLQvC/n11X5NgHBKOxLA/7CN2juHvATwXFPZOIcysRcXOIlzaKD7Dg/sghn7bM12O 54rld8JLinPd18OtIyAofWngQZYCiWNCSMpFeeNh3N6dAyPM23ZsYwpr3RZJDe+zC9oZaQgRI oy0z4eufshZdsFFVmpOX1uew2aFNlIonevimLQk08D6DuHYYXjsRSB9EZXer2WxVCGqg68vdy QdqCUILNjYF/JcUqDxWeNOjykwcDkyjkIEwQF5sJ0zhQnm8BaxXIzH6ULNmqk/IHri3jRld8v NCwCzvjEo9qrwl8ANIGtV857B/qtqhyNG7vqkZPZRAtrzv0SCxM+Ov3TP4Pv1KjDUc1zDdVtW 3MATxOZ/3TMBFpyK7CR+puKs8/NYsXngaR+LGWjk6ddUeKeOhZg2HA= From: Parker Newman Change exar_ee_read_bit() to return a bool instead of u8. Removed need for ternary or if/else for return value. Signed-off-by: Parker Newman =2D-- Changes in v2: - Change exar_ee_read_bit() to return a bool drivers/tty/serial/8250/8250_exar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/8250= /8250_exar.c index 01748ddbf729..8665d3b7b673 100644 =2D-- a/drivers/tty/serial/8250/8250_exar.c +++ b/drivers/tty/serial/8250/8250_exar.c @@ -300,7 +300,7 @@ static inline void exar_ee_write_bit(struct exar8250 *= priv, int bit) udelay(2); } -static inline u8 exar_ee_read_bit(struct exar8250 *priv) +static inline bool exar_ee_read_bit(struct exar8250 *priv) { u8 regb; u8 value =3D UART_EXAR_REGB_EECS; @@ -317,7 +317,7 @@ static inline u8 exar_ee_read_bit(struct exar8250 *pri= v) regb =3D exar_read_reg(priv, UART_EXAR_REGB); - return (regb & UART_EXAR_REGB_EEDO ? 1 : 0); + return regb & UART_EXAR_REGB_EEDO; } /** =2D- 2.43.2