Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3073224rwo; Mon, 24 Jul 2023 06:01:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFF6FY1LxP/kQj4zxG3H2mHsCDu+Y/9AoJQmo0AVuhOukwxRiPMwAO+BhM1Jt/2GtcLyaAi X-Received: by 2002:a2e:7d02:0:b0:2b6:c2e4:a57a with SMTP id y2-20020a2e7d02000000b002b6c2e4a57amr6239656ljc.38.1690203700789; Mon, 24 Jul 2023 06:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690203700; cv=none; d=google.com; s=arc-20160816; b=QJ5sHWn9eEINUr0OCfpyW66jbvagYgxa3PiCFYifzd58prHMp25TN3ug6WpDTqRNOm kL0PFyp0RA9+kLfuDvmRqxvT9RxEH/poY8y9LrYSh8ZskRHeM5VU6t71dxCtnAZy0muw bfRCl40oo6jcRjCqOJSjjX3whwqrlRkmFhmwQAQ3uFqifGlA0LKZi1qgXAyoAmoLIiDG VZYmTyqQItGll2n8jpUI2csJTTUNCxx5CfsGGvl9ffNAba78l5sVCI40dpKAJP/4fd+b CC1Ne7px+R9Bbe3bNFxKyfpHw3Fizqw/uehyoLehxID0dwap5hcFBe0rwkFGT0IQsNor tzpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=J2mcK1X0LS3CTeGUXCeCWuXi+cjpz6nauAIC4bjbcTQ=; fh=9lq70ercWVMBbGWRmwC/rOWFxqEu+s4+HKf6W0s7LRg=; b=MbERpIvieywo4WNbPe/fAWSJMkFmDnwHtJm1up5ta3ProBXKSX5k+a9zF5JQkQ3sAN Fkx0k8Km2muJdJN55QIA47+aygFMRXtzZfsNWxhF+OHjNpTYqmt8kTeo8VQbCg7jpp4M lCQgFOkua3hDMxazV5zCrzMbkLwC++2UHzBr+Mum9pb6ARlBCVaRiSb416eI5zhUq1BI hIuOkEr7v70+L6hl17YLAnvaQqnWxx6Pu5cjfxgNGLsrbUHlgMQDekXmKb2lOFmz9HDp IwvxmuRIRn4kI+RLdmEvmZ2bqJLp6U2EgqpfioKsZH0eBeW37yM+wPJIm9E4xHts5GVY 0R5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=eAi7Xggk; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a170906118100b0099381745ba0si6626780eja.156.2023.07.24.06.01.13; Mon, 24 Jul 2023 06:01:40 -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=eAi7Xggk; 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 S229971AbjGXMge (ORCPT + 99 others); Mon, 24 Jul 2023 08:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjGXMgc (ORCPT ); Mon, 24 Jul 2023 08:36:32 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00920E67; Mon, 24 Jul 2023 05:36:31 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36OAB0Tn005534; Mon, 24 Jul 2023 12:36:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=J2mcK1X0LS3CTeGUXCeCWuXi+cjpz6nauAIC4bjbcTQ=; b=eAi7XggkEMRQf1s3s6Da3wc8snet9WXYlUoTr/Ndb/xrZybCg62fMOrox2L9t5hv5mSk 1z+LuxC51w9ZGk2nvp2rLpPGge80qHqLWQfB4GhvxX2ZERbmGit3++tKGm7lRlditawQ ASitDOFh2t0aJQJgUE+DjBPDuFPQ+Y18dwJaMVkaI59OXe1gJE/d2uErqlS47x66wrAR TxcZgQXl5B+PSXfZpz3EAyU57Clfs4mClpRlUcR1pAzEaz8Qx5Fr90bhLOrU6vsYcqqG OSbTYAiM7cC/mZ16hAGY7Iu/y00eX+Ih87vx5D8RRbnntyjGBAk+4cBP/TNA+fbSk/s2 5g== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s1qasr91j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 12:36:28 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36OCaR9B005814 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 12:36:27 GMT Received: from [10.214.66.81] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) 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 05:36:23 -0700 Message-ID: <3e193791-613f-b500-75a1-5f36cefe0ddc@quicinc.com> Date: Mon, 24 Jul 2023 18:06:15 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v5 3/6] nvmem: core: Add stub for nvmem_cell_read_u8 Content-Language: en-US To: Komal Bajaj , , , , , , , CC: , , References: <20230724084155.8682-1-quic_kbajaj@quicinc.com> <20230724084155.8682-4-quic_kbajaj@quicinc.com> From: Mukesh Ojha In-Reply-To: <20230724084155.8682-4-quic_kbajaj@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: IkpTrAG2Qi8JunNAm-2WUAkYou-DQswO X-Proofpoint-GUID: IkpTrAG2Qi8JunNAm-2WUAkYou-DQswO 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_09,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 impostorscore=0 mlxscore=0 mlxlogscore=957 adultscore=0 priorityscore=1501 clxscore=1015 spamscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307240111 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 7/24/2023 2:11 PM, Komal Bajaj wrote: > This change add the stub function for nvmem_cell_read_u8. "Add the stub nvmem_cell_read_u8() function for drivers running with CONFIG_NVMEM disabled" -Mukesh > This will be helpful when a driver uses this function and -Mukesh > 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) > {