Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp884457rdd; Wed, 10 Jan 2024 02:25:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsZDB5w2nNboVTPXx8kB2tgDtee6UdPD3aT6Lco1a+r8+BL0f6I5sabMjJ07MlJersrzWh X-Received: by 2002:a17:907:2cc9:b0:a28:fe9c:e4cc with SMTP id hg9-20020a1709072cc900b00a28fe9ce4ccmr879780ejc.19.1704882333694; Wed, 10 Jan 2024 02:25:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704882333; cv=none; d=google.com; s=arc-20160816; b=gv4sv9OubR/cxUCjp/oK4EptUmk1gpz8AK4Xyc420ft8K23ax9+MsfL5bpDPDfMlBM u9XddIeTbtLdmTj8ndOCJJ1zcoeEeQBPFqQoHHqfwytIg+vTuDXluURWK2QSF/oqQJ8m Yh75fKL1qUgeVdcFRS3H9aPJEOgMCSsgf45teiliBQOzV9U61Tko5K8NdLGYUXuFpjzn J5D/VVFL2BQ+z5ajkfA6CbpU2AAYfbJllgrC6lqyTAzY09cV7dk9Q0tuqeCmSNl/e6F0 GLFEHFXoiLrr6difXWMl15QbgMTditKbJFqBd1aCK15rKYRO6/CcHFZzUBbW9JwGrZIs QJsg== ARC-Message-Signature: i=1; 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=usOFTN8z9J8oP1ehPXietRPaPrvt1NPPISnLCzCNgPc=; fh=L3T8yf8vSzHphCvhrp7B+WkrE2tyOzsKyWRf66adBdI=; b=fbFdIviyNG7ssehWP5XV/e/VeOo5+XMDq21uDkAQJvACPq9eZYbf00VEkyPHeOVIOo EOHyWQk6hy1MUh+QE1WAK5RBkL0MemkFnPJ/x/6EYPIZlQdgS4LG07AHhbH6OCTJGOPU jHqlTQTVK13M+I8C8+IllXqQpcH6bXBzFZL/6jVkOleJkEtD/x5BU52Gk20HsKFcj0nl KJ++bAf+qUpuChOKk28x3vuKvhjEY0nBzTLaKwYUBJQrWAfmhbmRYW4pbqfO/lXC6frm 4Vzn9x7w/6onEPASYXr8Y6QBfK/RAIp/2p5NYCh+xNx2jc1bId0GuyvuLlf7lbdJF39j XisQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BXhg3hM0; spf=pass (google.com: domain of linux-kernel+bounces-21981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v6-20020a1709062f0600b00a22fb3af196si1635652eji.881.2024.01.10.02.25.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 02:25:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BXhg3hM0; spf=pass (google.com: domain of linux-kernel+bounces-21981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21981-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 73D5C1F28212 for ; Wed, 10 Jan 2024 10:25:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9ABE482FD; Wed, 10 Jan 2024 10:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BXhg3hM0" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 1D8A047F7F for ; Wed, 10 Jan 2024 10:21:20 +0000 (UTC) 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-f47.google.com with SMTP id 5b1f17b1804b1-40e4f692d06so9990935e9.1 for ; Wed, 10 Jan 2024 02:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704882079; x=1705486879; 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=usOFTN8z9J8oP1ehPXietRPaPrvt1NPPISnLCzCNgPc=; b=BXhg3hM0pS7t3Tv35DtttZ38+AIVNojHF8gn+VBxCoAHG3KlCJo0TL0+m66GlsHTOW DdudZj8h9axgGgMVaZUD6RJUOeOrTucFDScxH4cKEB3qP7pIlIgaDzzgcmrLfT0suqgT pcl4lmGNDHx+K9t64mWzjLS2iWd405a5ggUY6fQ10oKstEMW+1dC8WiRs1HFjL+O24Rs r45KVsfyWX9FHmmHVzrDvQlxEuJ7tRk9C9BwnZcEelTLbXF82HUEJEHhuVZRee2ZB6OH yL2N0UNvwwQZjd657IuWULX2SrFHyVO/8LA1z2k8NqhjQlYYNFPTvZ3/Yq7CgE6fHjEt N0EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704882079; x=1705486879; 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=usOFTN8z9J8oP1ehPXietRPaPrvt1NPPISnLCzCNgPc=; b=wu4tNJ0yTOG2jIDdoNrxAW2m3CgaeA2PfUfdFT1TAGLJKYw3dXkRGYgiaEO/VbSVl7 xpzwA/trUGxNWTl9OTlAAkRT0nCK4TtjhwllUA5ue0JS8+guXBo/iMdke5hw+FpX9UJC uF7A2VVPyY6Y7Y0tIhDhxGCGEGZn4+OE0JvXpng5zw2gyib0BdY121KC20gWfiwTh6Ph 6QAtS1pGwNCRAjAxazGGvlDca7aBUQPXxdWta5ULYomU/9lOnnQi6PecUXOsmLDkH7yR jNXAp2IKtqspbte+j+tcNAcaxO63PxpUXdjH3+9k+IPdepC0QWK6DqIJuLciB7i1y+7o YplQ== X-Gm-Message-State: AOJu0YyjNgcw4XuK80sS/0LvXsL4jbkUmOGSmcDRGn4xnBLhgelM828e o27MpKf0vkMmw1W0U++obHWcngLm6vK1rw== X-Received: by 2002:a7b:c855:0:b0:40d:b191:10e with SMTP id c21-20020a7bc855000000b0040db191010emr577084wml.175.1704882079484; Wed, 10 Jan 2024 02:21:19 -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 j7-20020a05600c190700b0040e52cac976sm1625302wmq.29.2024.01.10.02.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 02:21:19 -0800 (PST) From: Tudor Ambarus To: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH 15/18] tty: serial: samsung: change return type for s3c24xx_serial_rx_fifocnt() Date: Wed, 10 Jan 2024 10:20:59 +0000 Message-ID: <20240110102102.61587-16-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20240110102102.61587-1-tudor.ambarus@linaro.org> References: <20240110102102.61587-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. 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 37c0ba2a122c..436739cf9225 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.472.g3155946c3a-goog