Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp166532rwb; Thu, 17 Nov 2022 22:52:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tN92iQ5oTndxY2wwz9HU7740z75yJVeRlbzw6vq7bRtTvTrP/+tDk+s/Bx1WX+stAjma6 X-Received: by 2002:a17:90b:394a:b0:210:4438:2d40 with SMTP id oe10-20020a17090b394a00b0021044382d40mr12298464pjb.196.1668754354940; Thu, 17 Nov 2022 22:52:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668754354; cv=none; d=google.com; s=arc-20160816; b=nEFUPmVoMEu559Q21JS4fh5KvsgWNQIDREeo1+5tL5Gc0rYOTOHhC5TcSXTsz+81A6 Yydln+9d+LUHec0yQNwvwVao1FwxfiP4poNtNEd4/w9aTuMKnEc+Fe8Ps5iP3MYXj3bj e72hHZ8MFdZha3uYPotJzznadrvlKWmS0GdkzA3aBI+w+g6Z+i8XJ9zLHPQQkW5abDUO TBv1dMtGXwKsvLFWa2PB6lxnZzxjCbEjio/zhJV8N3KJCMU/XTpKptFbk6AikF93r+9r 3IryvOptvFNWiC73l4HHs/YC9fECoPTlqek8J788jFUUbFn7uHVd83fVAKJ5riviS/6/ 2VeA== 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=rAGSEtoMjiEA8z4zpCZaH+zh+PxwDmjtLZ+/VPy/B3U=; b=kb6GS2K8BKw82pGf6sNZqosx/JsrwOtRGgKBZdL1qXqzuWJ5ICz+KBYUCXnLl1JbIQ LFZxA0L4way8/uLiTkKGK71lSbFaW2TSrXZUB+O37bJxKxknheT27OHaUJ+eJYH6BBlw +k/5BJ1PApWV5t6VQYoy4LlNc9kAacinRhztf1RKYt5NJ30tyml8i0yie9gfCtdyWM2N +VWMsAVRkHQ12Utbpz4umZHKnqGjPlyELZbu4Cj0qFzUaQFxAt9dycetWP8l6l9/HYLk CkBKYSLvAaBoNYYS4CIaD5Pz7vwMVlcWTVoGCkoQSGuOmTpbQRFCsfMNVplj2F4oguiF P2yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aRsrluM2; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020aa78893000000b0052f80d1a588si3056360pfe.44.2022.11.17.22.52.22; Thu, 17 Nov 2022 22:52:34 -0800 (PST) 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=@linaro.org header.s=google header.b=aRsrluM2; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241273AbiKRGkl (ORCPT + 92 others); Fri, 18 Nov 2022 01:40:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239518AbiKRGkP (ORCPT ); Fri, 18 Nov 2022 01:40:15 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D96E82BC0 for ; Thu, 17 Nov 2022 22:39:57 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id o30so2977523wms.2 for ; Thu, 17 Nov 2022 22:39:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=rAGSEtoMjiEA8z4zpCZaH+zh+PxwDmjtLZ+/VPy/B3U=; b=aRsrluM2SXV3g9vL62gj1RsXStNyAiuKd+wb+Jl3GF1e1XsaGlG2ZtvbFW/87pJomu L04yPhiXj74Em1HmNCTCZU6erO4ZoXxhg78mRyFQ4UsLclRiJcmll4wcuajyMuoBs0r9 TVp+xewuomUTezXmuWz7bIgcHJQU+3n6fSDFVnNSsm9RmXW3la/OdI6Pel+8zgKTanyq o+nXHotSrSNKFywLxx0sVvg6w/GXUkLgXiFZ2VhLQ+zeae0ORfqENxTD0czL0Y/x2rys MHUofO+f1ndJCJf201cUSZlAvssiPIChJtU1B0KU6sxHowYsIZRhR6+DwEcaxDAIIXWv deMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=rAGSEtoMjiEA8z4zpCZaH+zh+PxwDmjtLZ+/VPy/B3U=; b=B4IogNG5GIij4+ogjrDVMA+/uqsmL5Mr6BItwtqeRDxauaF9Jvz3Yv5/iQuus52JeN dDyQyGYTXdh4Z4+QP0EBBT8Ne+41QKqgio6TJFgUT/+8c7We9yJs0qaAljemK3UHY13H L3uqvbdcGBKhYh1Txu/GmImB13h4VKFTay2U+FEhUS0iDeRDlrdh8HcUjSZzqEfHn6hj bz3m9nR+Vw2c0WOcTsWUEcJAuq4JuubWPMKPRt/N3rapA+u94nsJlBAWm864TDIrBV3N knNFev1BLx93LD2BhkS0qz6vMvVdP34u5T9NfE0K/7y2e4bXWf1u87McbOA95ElEyg92 IHSw== X-Gm-Message-State: ANoB5pmcio8rIHvkwh9Yocybbe5IVsoPpwtEkY1UnO7rUSVe0aDfL7fq N1BrMBjzTjc+MA9oDoatd7TzeA== X-Received: by 2002:a05:600c:188a:b0:3cf:8e62:f769 with SMTP id x10-20020a05600c188a00b003cf8e62f769mr7524563wmp.52.1668753595820; Thu, 17 Nov 2022 22:39:55 -0800 (PST) Received: from localhost.localdomain ([167.98.215.174]) by smtp.gmail.com with ESMTPSA id j13-20020adff54d000000b0023655e51c33sm2785902wrp.4.2022.11.17.22.39.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 22:39:54 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Patrick Delaunay , Srinivas Kandagatla Subject: [PATCH 03/13] nvmem: stm32: add nvmem type attribute Date: Fri, 18 Nov 2022 06:39:22 +0000 Message-Id: <20221118063932.6418-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118063932.6418-1-srinivas.kandagatla@linaro.org> References: <20221118063932.6418-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 From: Patrick Delaunay Inform NVMEM framework of type attribute for stm32-romem as NVMEM_TYPE_OTP so userspace is able to know how the data is stored in BSEC. Signed-off-by: Patrick Delaunay Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/stm32-romem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/stm32-romem.c b/drivers/nvmem/stm32-romem.c index bb8aa72ba2f9..6de565639d5f 100644 --- a/drivers/nvmem/stm32-romem.c +++ b/drivers/nvmem/stm32-romem.c @@ -160,6 +160,7 @@ static int stm32_romem_probe(struct platform_device *pdev) priv->cfg.dev = dev; priv->cfg.priv = priv; priv->cfg.owner = THIS_MODULE; + priv->cfg.type = NVMEM_TYPE_OTP; priv->lower = 0; -- 2.25.1