Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp471457lqr; Wed, 5 Jun 2024 11:07:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrDHQkvdMt/nznNKlbursmFpU0zsrYMurYMIsJ2yX9HCQ0T8XTZJvN6jUtcG3rNpk4JcfWI7ptn0yJUKze0Mu1mkpCWxreh/gBLPfl+A== X-Google-Smtp-Source: AGHT+IH6ZnRGpgEduEq0X7xr9HTXSpOPsL8iOkh4J6w2yapfqZ+w0jwIr27kibQuiOL/r9LigmEh X-Received: by 2002:a05:6a00:9a1:b0:6ec:d972:c3d8 with SMTP id d2e1a72fcca58-703e5969a81mr3265185b3a.10.1717610848981; Wed, 05 Jun 2024 11:07:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717610848; cv=pass; d=google.com; s=arc-20160816; b=mTAi1j7pX+B3V33C1ybKwvhYhXl1OeeHDwEzWqC3H4BvIWhDWFmBpU7IL2f033aGIp t12xIO4L0XDJ5+eT1o/aR5kxFtJkNiPICkm1TYfPvJdMNRcZ732yWS37dGvT5g4rfudU Pfh7ylzu+9W2FmGw/Xa5gArnGV78o3frcFoM2/jIg7Jr/H3y23yixlr728DxR+Dea7Jk zlKtYeTKitBXs0bgcTFc/L58MUuLaL7MNtPQ+GTNdPOBr+WMIAkQEWBDUUSfUTyvWPH7 yoYL5tiV+xvSCWwCV0JL10aCRaDuOd8bKycYbgFihxrkIA+vsK6lqMJVG38loCqR4ul0 BCSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=+5/Bg969zZ0eVFu5myprHh5fQqxMXbek8nDgGOBzWoA=; fh=XYrGkEkb4qGxgdTMKVzgAv8cL5qj29Yn9AgQzhOtNFk=; b=YIbL8FN8IjnEl0ch1OdQn6kK89xXYZtQd/FAnycgbxy4Skn+f5qoZX481wAYzUXKXj KS48pWBxJxONVF7dNQIfCyJKeH2ru+eFy+DPiFsNoBrDb4DamwCkeY/FcO2KmSFd27qM cBjJm/f4++1T1qAHbJJ1DoBCvpT+yW2lsX6yXn8KgVjSmwD4XPLVA6IqYDLhGxFyT8U+ E/UQYhzBli/M0obHE/vqKI8aS0wWU7i6pF80V94BA7pvY5pyBSS3bbx0nr49fC1Ir2Ub eiOX2OmvzZnaoqCzbIqxihDYQtC+iYpRC4MRV69+zz8DTR0EktvMlsELnkBoPXWE7GAt llcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=BoWahOKK; arc=pass (i=1 spf=pass spfdomain=flex--joychakr.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-203014-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c9e2e219f7si3424400a12.801.2024.06.05.11.07.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:07:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203014-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=BoWahOKK; arc=pass (i=1 spf=pass spfdomain=flex--joychakr.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-203014-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6067F28B897 for ; Wed, 5 Jun 2024 18:04:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D82813BAFB; Wed, 5 Jun 2024 18:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BoWahOKK" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 7CD5013AA4F for ; Wed, 5 Jun 2024 18:00:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610442; cv=none; b=BYcIT+DabenbIhP/2Ad93P6Ga6IMlCxSgXPdcefKDrSWaLQ5Qs/qvzJegVkjluzMIcCmG08CmqrwhjhxreyPRUdBycIWNH7PS7EBHYKs+c69aXaS0irXjlnBVYUQGWO1NJyi/8p4qxDSMD6Ny6FNPkZmYSi3xcx3JDyp4GRrGis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610442; c=relaxed/simple; bh=W5M28gmX2P2bsv2kzALbrb00qFmArQmOjGRUC+k0KS4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=SW1+HTmKe/Ky0awDZp1qIW7NqdWBcDNb65Od2JYyuom0MD2I74d5OLIFrDRZoMQpIbNbqFIVin6psj+rmP+5Vk4fv6lQ53KVtl7N2iySDzlaDo2VZ/j9tBzNyOT0+t5Ru5qKRBsk6oIjY0KUR1M83KRvAP42nV16sC6CfibQMy8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--joychakr.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=BoWahOKK; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--joychakr.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-62a50486746so206427b3.3 for ; Wed, 05 Jun 2024 11:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717610439; x=1718215239; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=+5/Bg969zZ0eVFu5myprHh5fQqxMXbek8nDgGOBzWoA=; b=BoWahOKKkJ1D7kfGtrnP0cUxpIrNaZ2suLddLewzR2oz4u7CWziBpzwFHQ+ftzncIs eFtpB/1H9zyQlzicoMJtoEWPK3DPjQzpefAzkEwD6qaiDFV3B0gWZlDhSKPFv0kyzLES mK3VwWf9UebiINpOs4Y5YKaafb1YFVHMwQk3QrRe8v5CIiNxI1jeF5dttXUDVWoM7CnG Marjrxai/k2CObkQx8B/L/3vNKpz1bxj4bvREXGRI3sEGkj1WJCLGHIzNySao6ORHqDb qzF5yPhaXQSrvk1jdn3p9DrUhYQfLvZ2MNZglt0siqP5RZkjDQWbJGwgpmIA/iYYcKMP XYxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717610439; x=1718215239; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+5/Bg969zZ0eVFu5myprHh5fQqxMXbek8nDgGOBzWoA=; b=lxgXnVeh43G008e+mTQ3EGOOGO9kQFkP2zV58jHS1aWRUInAsxqO2lN5Yxh7wOppUX 4N5jQ6z9dU3qbW6wObHtX0Ss/pqZHrjj4cZ/MIYSensXVnOGdiX0Lg116RMY+87gUjkf zrEv7VHF4HT5bZLo7fGCXzXTlDrswm3Z+P4mwIpc2G0CX075X2pXasTz5E5usTqUNywh BW0g275aRI/sW92nBxiSNg7a4fZZ1g1xxwwdw73e8VHJ5tXHi1QsUWIz1/8HBaIqVHlE 2yETkVzFKnN6BCVeHN+34SZst7S0IOtyJpoDA8m9SpKK72Emj3A6AonqTc/F504Y+z2N gY2A== X-Forwarded-Encrypted: i=1; AJvYcCVxvqkEg9cVFJwbSKB6+/nMmF256Qa4O1xE3MXLNeBxlbkTXqyDaSCyb8SiOo0AuxiWiu0o6WYByZJR1K/9/h5Uh7uKBKkaiI9lD6z7 X-Gm-Message-State: AOJu0Yw1wvjEzoxkm/svYc4/9Jh62cQvpOqQ0aSr2uCy+V6IsvhRKktk fBu+Tujj0LqX8X3uW/ndNAsXYyckiVAFZAqcZdTXj0fUl8HYWn6IR/h3p/yiO/Pxceog8xulfKH bQFjkrQfSEA== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a05:690c:d90:b0:62c:efc:38b7 with SMTP id 00721157ae682-62cbb4a22a0mr7561267b3.1.1717610438615; Wed, 05 Jun 2024 11:00:38 -0700 (PDT) Date: Wed, 5 Jun 2024 17:59:53 +0000 In-Reply-To: <20240605175953.2613260-1-joychakr@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240605175953.2613260-1-joychakr@google.com> X-Mailer: git-send-email 2.45.1.467.gbab1589fc0-goog Message-ID: <20240605175953.2613260-10-joychakr@google.com> Subject: [PATCH v1 09/17] misc: mchp_pci1xxxx: Change nvmem reg_read/write return type From: Joy Chakraborty To: Srinivas Kandagatla , Greg Kroah-Hartman , AngeloGioacchino Del Regno , Lars-Peter Clausen , Sakari Ailus , Bingbu Cao , Zhihao Cheng , Jerome Brunet , Martin Blumenstingl Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, linux-i2c@vger.kernel.org, linux-gpio@vger.kernel.org, linux-mtd@lists.infradead.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-usb@vger.kernel.org, manugautam@google.com, Joy Chakraborty Content-Type: text/plain; charset="UTF-8" Change nvmem read/write function definition return type to ssize_t. Signed-off-by: Joy Chakraborty --- .../misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c b/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c index 16695cb5e69c..817382c342d3 100644 --- a/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c +++ b/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c @@ -117,8 +117,8 @@ static bool is_eeprom_responsive(struct pci1xxxx_otp_eeprom_device *priv) return true; } -static int pci1xxxx_eeprom_read(void *priv_t, unsigned int off, - void *buf_t, size_t count) +static ssize_t pci1xxxx_eeprom_read(void *priv_t, unsigned int off, + void *buf_t, size_t count) { struct pci1xxxx_otp_eeprom_device *priv = priv_t; void __iomem *rb = priv->reg_base; @@ -159,8 +159,8 @@ static int pci1xxxx_eeprom_read(void *priv_t, unsigned int off, return ret; } -static int pci1xxxx_eeprom_write(void *priv_t, unsigned int off, - void *value_t, size_t count) +static ssize_t pci1xxxx_eeprom_write(void *priv_t, unsigned int off, + void *value_t, size_t count) { struct pci1xxxx_otp_eeprom_device *priv = priv_t; void __iomem *rb = priv->reg_base; @@ -214,8 +214,8 @@ static void otp_device_set_address(struct pci1xxxx_otp_eeprom_device *priv, writew(hi, priv->reg_base + MMAP_OTP_OFFSET(OTP_ADDR_HIGH_OFFSET)); } -static int pci1xxxx_otp_read(void *priv_t, unsigned int off, - void *buf_t, size_t count) +static ssize_t pci1xxxx_otp_read(void *priv_t, unsigned int off, + void *buf_t, size_t count) { struct pci1xxxx_otp_eeprom_device *priv = priv_t; void __iomem *rb = priv->reg_base; @@ -264,8 +264,8 @@ static int pci1xxxx_otp_read(void *priv_t, unsigned int off, return ret; } -static int pci1xxxx_otp_write(void *priv_t, unsigned int off, - void *value_t, size_t count) +static ssize_t pci1xxxx_otp_write(void *priv_t, unsigned int off, + void *value_t, size_t count) { struct pci1xxxx_otp_eeprom_device *priv = priv_t; void __iomem *rb = priv->reg_base; -- 2.45.1.467.gbab1589fc0-goog