From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87B54C001B0 for ; Mon, 24 Jul 2023 12:36:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjGXMgf (ORCPT ); Mon, 24 Jul 2023 08:36:35 -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 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) > {