From patchwork Mon Jul 24 08:41:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Komal Bajaj X-Patchwork-Id: 124708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1668966vqg; Mon, 24 Jul 2023 02:06:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCrlg84ppiZ8qJM5SQ4ORYiYBrIAzwuPIdDRt3/k6eP3M93SR1RrzyH+QTt3rnReYr4Fjn X-Received: by 2002:a05:6a20:1456:b0:13a:72a9:799d with SMTP id a22-20020a056a20145600b0013a72a9799dmr1765729pzi.19.1690189608283; Mon, 24 Jul 2023 02:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690189608; cv=none; d=google.com; s=arc-20160816; b=PxzjYYAgWB05A2ytRe7y8sG2rQ+2KaiJPTihCrUbRyVQ7qkxNJKlLhncRK11Mb1Avx gbcDVNvtLMObSU/Gi/NuWy38eMMXH4ex3YBp0k1iHXRWxU8FQWqA6AAstZk1G4n4uKrE Hw9JR/cfJZQ87d6V9tLlsypXHZa75FqjqmO5fwgLIkT0neHC54X+3wj8iFYitdEyNu26 QMA2oSkD4sG3TQ3RCVYbNZXnDQ1hxRYcOf0n7od9xKxCHeCiB/Wamg8S/Ul30UvvzH/h zw5gWPeDPD7biGc1CDgMykBbBDgOvkoHjLVaN4Xi0DSR7SSkn/vqhQx8Hq7AFelTz16p 8tMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gOLMOu9NZS+RTaixpQ3ylmiL5BxObPh7I+FKG3/m6pw=; fh=+vUcU9Ka/zutQtgnWdg0fu+fF6W3G4xdx8y/5nL/YjU=; b=R9JxFd/eMeacBV/1w9QndG0itMYPWUFviHios9RqJWsSr8C8qLCDlvdva1xFE5ST5i Pc+7kj+ecB9VaDOripqb5SiiY53YwzIKQBY5xChz1eBry/kITHD5Xmxn/tWphh7GmXZ0 nLIsdm1HGzZWmMw+0kreSSDUVxOl/5aKrrXXzgQaf/tDLksn+DF/vPA8GEFN5mkg7NnC uxkWxoscUVA0XE3vYCcx1g6q+Q0sy+n85ZhFKfoa95xzFy9/25D/99T+U5KvrwXXpBBQ Ne7QArku6y84JtsijvGOeS+oVTwPQ4j94LLg2sw7Jr5V5CX7Yp/+XgKDj65K2bstWHOG pSxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="MzB/wXKL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 198-20020a6302cf000000b0055bdf89c9d8si8572842pgc.436.2023.07.24.02.06.35; Mon, 24 Jul 2023 02:06:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="MzB/wXKL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229509AbjGXInS (ORCPT + 99 others); Mon, 24 Jul 2023 04:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231767AbjGXImx (ORCPT ); Mon, 24 Jul 2023 04:42:53 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D99310E3; Mon, 24 Jul 2023 01:42:43 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36O5vkXD004618; Mon, 24 Jul 2023 08:42:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=gOLMOu9NZS+RTaixpQ3ylmiL5BxObPh7I+FKG3/m6pw=; b=MzB/wXKLTyBtTjDEqKM4hB9mYRhN0y+zKs4BPyKMxRKzumS1mCOu6Y2+EgPSpXVBfOT7 FSLIaIELkxZMDbYRiW9rVehXl1qIp6tyUhiTUoj5nlTIvnUkfXC3kO4XUvgtgU44gYRV 8Vln3txQ7Q/1thq+nB51O6XrcZENsY0bIR9ZgsRq/BJDp5guBJVNRUYKi4DcjMcFwwzi CGZba0gGOrh8G9iutxvkTGX4I3OyE4ni9Bizmkn9bWxmvzGtme2PnN8kuYvXUKtkfV0W FlwdrGtDjbnDCOtUrcm15iCcpwIpEAxpmdXz1f4Jf2zxs+Bcj30fR31A6ZZRQfyfkKDY HA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s064djuwh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 08:42:40 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36O8gdjZ011882 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 08:42:39 GMT Received: from hu-kbajaj-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 24 Jul 2023 01:42:35 -0700 From: Komal Bajaj To: , , , , , , CC: , , , Komal Bajaj Subject: [PATCH v5 3/6] nvmem: core: Add stub for nvmem_cell_read_u8 Date: Mon, 24 Jul 2023 14:11:52 +0530 Message-ID: <20230724084155.8682-4-quic_kbajaj@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230724084155.8682-1-quic_kbajaj@quicinc.com> References: <20230724084155.8682-1-quic_kbajaj@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 6Eg-fJiRt5qsMUcXEZ0AbrVp3sPhnAuj X-Proofpoint-ORIG-GUID: 6Eg-fJiRt5qsMUcXEZ0AbrVp3sPhnAuj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-24_06,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 impostorscore=0 mlxlogscore=810 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307240077 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772292258342606230 X-GMAIL-MSGID: 1772292258342606230 This change add the stub function for nvmem_cell_read_u8. This will be helpful when a driver uses this function and CONFIG_NVMEM is not enabled. Signed-off-by: Komal Bajaj --- include/linux/nvmem-consumer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h index fa030d93b768..5c88635d4c2b 100644 --- a/include/linux/nvmem-consumer.h +++ b/include/linux/nvmem-consumer.h @@ -125,6 +125,12 @@ static inline int nvmem_cell_write(struct nvmem_cell *cell, return -EOPNOTSUPP; } +static inline int nvmem_cell_read_u8(struct device *dev, + const char *cell_id, u8 *val) +{ + return -EOPNOTSUPP; +} + static inline int nvmem_cell_read_u16(struct device *dev, const char *cell_id, u16 *val) {