Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2267599pxm; Fri, 4 Mar 2022 12:43:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuRCoqbccBuY604y33tt1JDb56BVPM/1CKznfrBIp9BGoIx3QAdyZ7ca0cN5up+Wwt5mxV X-Received: by 2002:a17:90a:8591:b0:1b9:da10:2127 with SMTP id m17-20020a17090a859100b001b9da102127mr12535194pjn.13.1646426593549; Fri, 04 Mar 2022 12:43:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646426593; cv=none; d=google.com; s=arc-20160816; b=Q06+UgO26H9DSECQXK4OHXdUCF+xTEK2QGJOeY6R1BLYh+s7ngv35fJZUkGweKi47/ JobwJU4zEAwmPt9Rw1m6OI9Vc+pzrjk4BERcoVjjoV3Qjo/ouWgAhaxM7GFGk11dYzkI iCBoHcFMzhjOYn86zs6UWlCQEhAAtNJdFa+nJORGEJgEdlr+mubz1E0YQsaYvxcXZqIc u7dYGUz1S1YirWBV7cvGTFAfgXJ3HRrnQ0YrIbq8odpdu/qlP1C4QEUt+VTd+CIZqGAv bWu570tKCEujtMelxgl0yOgoMotAJUpGxdhaccSSYvYcKI0aG678qDjXtfflNLUAskdR MNXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jUkLQQFTx4978h2cJ+P3QRLTUb7nmPgVnstkimxJYPM=; b=Mu6BJJPuIYiqED/jZeeaCH5FxQHme2mjoi1tZAuGQJggiFBM2Pi8QNoyChjK2apztn I0pKOD04eunUCYLTnAWIuoBId2rUVUkP+m6h8p7NkT+PVbAeNYBwsBsLiZyb27shkOWN YjvmdX0EkZUDfPsTu8fAuKxF20bQMn2lpFFGKAQCe+zp4weF7U+KuRn91x6hpK12cb6d nHav5FXKg+ukK7Lh7boXjsdQPva472Gl0Ejs657osn9dN+/Jor/wdu2ImhNnObrWFx7H Ros5Xw0p+qALN5Wepvsvv4Jw0m9rhmz6uKmwbA/BierZmN5jTuT89F7QT8oUGwB9B45Z RMLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WmMjbRwW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m12-20020a62f20c000000b004f3931eaf58si5665304pfh.68.2022.03.04.12.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:43:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WmMjbRwW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 285682F5FDE; Fri, 4 Mar 2022 11:42:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241677AbiCDSaA (ORCPT + 99 others); Fri, 4 Mar 2022 13:30:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241685AbiCDS37 (ORCPT ); Fri, 4 Mar 2022 13:29:59 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C6D3A41B7; Fri, 4 Mar 2022 10:29:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646418551; x=1677954551; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=T1cJyOMT/4MKGohYN7debDUVB+ANZyP5BQoa2vWx+2Y=; b=WmMjbRwWZnnL8eX0KxSotT3fKM09kVEuFkZlCRNeLdYCdvPKrddNNznb WTs8Cg96aOB3/mKl2yil9RCDgjWboeVRGpD4veO3Xumtf5bnFLcKXpf4V fLUmKAiiAzTA9nTQFDgjtU2m9QrgeE4QzXMeWRjDfVYC0H/wASaevWxyl gaylwgnPo+PUm0VWwm23tS2wQ99+nHXnLDj4rniI4fdplVtcv0hyW1mGR 9yo3KWjHLUjE6l6zRGsUINeWWBzuVLoHenGOmzYcSA/nnxzfEivWL3q17 CDuYsYENUHQHzGWb4lQS5NgBLZjRiecHwOwxfQ0hqHzRkn6jT0A3T9JMn A==; X-IronPort-AV: E=McAfee;i="6200,9189,10276"; a="314751355" X-IronPort-AV: E=Sophos;i="5.90,155,1643702400"; d="scan'208";a="314751355" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 10:29:10 -0800 X-IronPort-AV: E=Sophos;i="5.90,155,1643702400"; d="scan'208";a="710419091" Received: from smile.fi.intel.com ([10.237.72.59]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 10:29:09 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nQCf8-00BKb2-UB; Fri, 04 Mar 2022 20:28:22 +0200 Date: Fri, 4 Mar 2022 20:28:22 +0200 From: Andy Shevchenko To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nuno =?iso-8859-1?Q?S=E1?= , Jonathan Cameron , Lars-Peter Clausen Subject: Re: [PATCH v4 3/3] iio: temperature: ltc2983: Make use of device properties Message-ID: References: <20220304180257.80298-1-andriy.shevchenko@linux.intel.com> <20220304180257.80298-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220304180257.80298-3-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Mar 04, 2022 at 08:02:57PM +0200, Andy Shevchenko wrote: > Convert the module to be property provider agnostic and allow > it to be used on non-OF platforms. > > The conversion slightly changes the logic behind property reading for > the configuration values. Original code allocates just as much memory > as needed. Then for each separate 32- or 64-bit value it reads it from > the property and converts to a raw one which will be fed to the sensor. > In the new code we allocate the amount of memory needed to retrieve all > values at once from the property and then convert them as required. > > Signed-off-by: Andy Shevchenko > Tested-by: Nuno S? > --- > v4: added checks for error pointer (Nuno), added Tb tag (Nuno) > v3: no changes Forgot to add, that this patch should work without fwnode fix. To test fwnode fix, the part of the NULLifying ref should be (temporary) dropped. -- With Best Regards, Andy Shevchenko