Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp914457rdb; Fri, 19 Jan 2024 02:49:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcF5DiHUFfJuwgfnoroskpX0RqAKq/TpPXX5scv0XNiJ+TNHG8qhkIcXVM6bt7dz/8WAOY X-Received: by 2002:a05:6214:cc6:b0:67f:812b:670b with SMTP id 6-20020a0562140cc600b0067f812b670bmr3099242qvx.23.1705661364683; Fri, 19 Jan 2024 02:49:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705661364; cv=pass; d=google.com; s=arc-20160816; b=KWkrcBmhufVAJv+t6muRyFPQ9vXme7eWXINXW1Ko21wI2h2IzGhYI+6vwVfNVC1lOh hjqyP+YsQ7LhY/rS2zqSFvvR7akWXgaJNV1SZXOEO3HxU322q3z96/X2lJIk6HS0PCKv 3IokatoAI0dHGDaIH6iMZnAR1HF0NqbE/x2WlzSxRfF4o8ytLOpDoh0mZD5b0/IPjL4I 1rJTlh2iN2b8uqXkq3GkhtI/z9Y/cv24GzemtGfRt348IjXW3JkOq+zwhLhUuU8CbShH i2+JnaTmGDXSjB/cAssRKuYKYUyxDOJHrpzYP/QUPrSQejlqbOegiPk+EnzKan9mKUOE X0OQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=jN+fQndYHigW1BmW4SX4atdBHvISKmx6Ya22q2f2b7k=; fh=l853tIkYxgnik1fw2Sxn5xLiC2jBtKRoTjggHTcG9RM=; b=DEBRqep+Ad1Rq4wl9dAx2WvGOf/+oGfmbvdCE95G7m5x+2tu4RYYqg9IhF5jtAcMEH dm8x9AcKQKQOEiDsvr6m/X5ONLHqWtv6eg3++Rc/nGyqU/BJOw5CnYtaVfv1gB8Y0Aa7 LiHYB6D8WGIvKeSFmQfm5Jq6ksF9IUjTyVcaFaX3g6LYsXaRrxJAChLfQ+vqhLpOqxXv QCXjXKNSxVKv1N6WGDMafiDMjgTffjcMJivGtwOX4LoU5chPLBoSM6NVnpbqUzUIyNEa mgfzbOPifomv6UntfpK16c3ldxQHnCRWMncZWf6otbd7wVfnsG6XZfmuy9ZZiw5mPVHE k9Fg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YI7l/tdk"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-31045-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31045-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x18-20020a0cda12000000b0067f81bb73bbsi15510506qvj.569.2024.01.19.02.49.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 02:49:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31045-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=@linaro.org header.s=google header.b="YI7l/tdk"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-31045-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31045-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 642E91C227CF for ; Fri, 19 Jan 2024 10:49:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45FF650A91; Fri, 19 Jan 2024 10:45:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YI7l/tdk" Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2CD54F88F for ; Fri, 19 Jan 2024 10:45:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705661147; cv=none; b=T+kUpz3a6Sz0M//PrPCDx1aFDkYH6Yu3sWTquQq60S4nbS61f6dMrOyYcG63ln4DjT55jdVPdYWbi/B5a/m+8SZsiSaD3BVfiftapM1xwjGJzBWy8f9a8gued0W6J3OM7PaF0bP4reoXj7y9Uzv+6gCyczef++qx9ar8H1YffwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705661147; c=relaxed/simple; bh=RBHphks9zozUQ6IZv2fw5WHYcbPHqrdUfQWDhKEBAjQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FL6jZEVeqSZV+rrxFU0uZ06DDpS+MO0vix62dawdKqL5uvWHn+hzfWEkype4NvMA9VKBy7Xhx4GNpYxAmWYGsDEh3yEOejLEZMkL0wq0tUrTOgxcs5YUj5lCMtvLMKkqAbMYUbWcoiqKB8YP9sUM9wclAZjiTUu9r2VzFN4BLG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=YI7l/tdk; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40e80046264so7275255e9.0 for ; Fri, 19 Jan 2024 02:45:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705661144; x=1706265944; darn=vger.kernel.org; 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=jN+fQndYHigW1BmW4SX4atdBHvISKmx6Ya22q2f2b7k=; b=YI7l/tdkzhYhHUgGzJ20OwGX3J/xxMwf0mAFL6UJO/cPeX+8XLmG3h3F0sV63jJ+fe 0QZlPhqlgZwwQUObMnB26D9Y/kFrfXbwzbPp9LNR17NjN1eJF2L9o+UC76zhAaBJ5Omm ykwOQ+bISJ79lWa7TxiFH5M3uX+PxEClzJZJqaseU6mo/zHxT30wU8vZaQ1txnJfUgqO CjcHdER20E7sGI3ao88rCgShYrQ06utgg55/3lTgqS0d3Ko+MaI5zrJpKLd4FVp3UBNe MOia6kejw/o/QEjsIjw5nvwlh8vjRGcXUT2eLFAOlx2JLbH85TbWcmLPLN2/nsaUsSoK 9Wmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705661144; x=1706265944; 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=jN+fQndYHigW1BmW4SX4atdBHvISKmx6Ya22q2f2b7k=; b=SDm3b1jovsniJBJzQsFP4IioUyaACkp29hBJF5QJlRNhhEpRtXHeIxVgSWhM3f/F4R IHDEX0UBkcUd6T21pExTBVwJydLkqX7GFtIrkjzTQc0g08z/uVPCmACzV4kxn95q48hQ L91lM+ljk35MU18spDNkvwdtM5NdjsFJn23LUgkdi4FmwDOpl7JcCXyfYxYvW/BJ0V8y 2Q9mZ+Px5O3IcV5Gi5J6U3rxx7iZgRlRoWA2ePwg8Xwy6Pq9nPfw1oWzIYH5qhYurft6 0QjoUPo8r+DhthW5DKuwuoh0uDbBMFijWZ4YX++EVEi6kpx6kw/cr0ohOpI3fw1pKjas Mg9w== X-Gm-Message-State: AOJu0YwIXxDVdbQufkh3phZ17Nx/3fwWC/+rrT+T0yuckFW5HVDqUxvW Id5Nm6vARWR+jW7iJ+b199EtyOB6YNsNLICO8ENTuP608btMpJQEtVTW0rcujBc= X-Received: by 2002:a7b:c4c5:0:b0:40e:4576:53f7 with SMTP id g5-20020a7bc4c5000000b0040e457653f7mr1371128wmk.49.1705661144272; Fri, 19 Jan 2024 02:45:44 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id fm16-20020a05600c0c1000b0040ea10178f3sm77470wmb.21.2024.01.19.02.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 02:45:43 -0800 (PST) From: Tudor Ambarus To: gregkh@linuxfoundation.org, jirislaby@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: alim.akhtar@samsung.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, peter.griffin@linaro.org, semen.protsenko@linaro.org, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH v2 16/19] tty: serial: samsung: change return type for s3c24xx_serial_rx_fifocnt() Date: Fri, 19 Jan 2024 10:45:23 +0000 Message-ID: <20240119104526.1221243-17-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240119104526.1221243-1-tudor.ambarus@linaro.org> References: <20240119104526.1221243-1-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Change the return type of the s3c24xx_serial_rx_fifocnt() method to ``unsigned int`` as the method only returns the fifo size and does not handle error codes. Reviewed-by: Sam Protsenko Signed-off-by: Tudor Ambarus --- drivers/tty/serial/samsung_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index bdc81ab4af91..149f618e22ce 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -590,8 +590,8 @@ static inline const struct s3c2410_uartcfg return ourport->cfg; } -static int s3c24xx_serial_rx_fifocnt(const struct s3c24xx_uart_port *ourport, - u32 ufstat) +static unsigned int +s3c24xx_serial_rx_fifocnt(const struct s3c24xx_uart_port *ourport, u32 ufstat) { const struct s3c24xx_uart_info *info = ourport->info; -- 2.43.0.429.g432eaa2c6b-goog