Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5490691pxb; Wed, 26 Jan 2022 13:16:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJz03NbwGvpjBfft+ivVGKANvmY6nWioVeYewYZNm4U0Xl39SAyAvKqqV+ehEV0cuJa4c26A X-Received: by 2002:a63:2dc2:: with SMTP id t185mr577691pgt.314.1643231800779; Wed, 26 Jan 2022 13:16:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643231800; cv=none; d=google.com; s=arc-20160816; b=pFBXe5q5/03sxOq82iWJ5oiehvzoyW80uoZvWRjRrvoP9XYnzVgM/jJdkevsElvP3X Wk9owNHuXZuYSPkvnZwLPLFTjJMJc/jNng+fsVjEp0Xx5RNSp4ovXD8pl0+VUTpu4TWd SL9j34aC86gQbYWrnjMcxs/Ib/jXnyndz77Xl1z361vxoD4LWchNOQ1P3WGZ++KBTELu jUS+jYA7z78wa524lLSttNia9Gw9ti8OuiWK6R8ofP/rivc7bs/rYX4zbPMMtcJj+Ob1 KzAhsPoumLkc7hQcYG9NNIV6M8482F4ib3FhG8oawpE+B1Hn+d/w/AdWfIrhbcixBQDK mwgw== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RiaucpqzaxrKvdGvDzzsbG7Fpzed9cUBYhG6qtnoYRU=; b=RJ1ZDKn6hen1U63tMUj3EUGIuC8PMo7WB/U4HEDncAtU7p4f8V2bOZFGYRogaeUUEr YpHDmxMGx3y7hwA7eKwcYcnZkyR+sQ35XZ3us1V/7ihsx4awKvrSerELWOhVg318//qE 7umrwfzLXe/jyKLrbYovXc4lSP2o7iMC/gWRnhHwdI7TfOJ5u24L4MluvRUOTFQM9E2A WLMbZibT5BXkHye9TGP/qzHnHRlOiS7At3I+JvEtRF6ggf2XGGAqQaN34MJChUGfhxeR YbXl+3XOJQ89r7JyASrtdQ7wtYAgSih+2Site2lyYrptSBLzRdbyjELOTqBnrYUZTkra BY5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="h7/kkKrP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oc10si4256849pjb.183.2022.01.26.13.16.27; Wed, 26 Jan 2022 13:16:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="h7/kkKrP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbiAZNCq (ORCPT + 99 others); Wed, 26 Jan 2022 08:02:46 -0500 Received: from mga17.intel.com ([192.55.52.151]:50538 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiAZNCo (ORCPT ); Wed, 26 Jan 2022 08:02:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643202164; x=1674738164; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7nK+CH4q5BpWQZsxJYj303+HmKOMjePVbYNz5G/Rv2c=; b=h7/kkKrPnGBWH+bsAI5ap86rjpg4ApP5cFOFqVTMg9Ct6lN+NonRRbgh S0SBJAAERBdyqFQvBRMH5UGiqL4cFTWKMLedverV/agfyfhKxyil7rKTh jO5bCROLlthFg/w+uGk9rXrGxz2kPj1PfKel3aMEfkv68aFj839M13Xf+ MxV7Zfd9g73eb30faLCcbGtYLl6r30LCUyaIglsRxNnMdnmNCZTdhiBBE gLLVzCBsd1N3KDXTQStluJmujmd/Lti4ntnUBgLcwsOrxySCqZ+UixQ4k f8XConSzKODoDu/2xR0xAdzT3lCCtYvPl/Y907p5d2BVGc1dSeJUayV/f Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="227215803" X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="227215803" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 05:02:44 -0800 X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="628297036" Received: from smile.fi.intel.com ([10.237.72.61]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 05:02:40 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nChva-00EbO6-MU; Wed, 26 Jan 2022 15:01:34 +0200 Date: Wed, 26 Jan 2022 15:01:34 +0200 From: Andy Shevchenko To: Peter Rosin Cc: Liam Beguin , Jonathan Cameron , Dmitry Baryshkov , Jonathan Cameron , Andreas Kemnade , linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , Lars-Peter Clausen Subject: Re: [PATCH v2 5/5] iio: afe: iio-rescale: Re-use generic struct s32_fract Message-ID: References: <20220110193104.75225-5-andriy.shevchenko@linux.intel.com> <20220115185203.567780e8@jic23-huawei> <34c121fa-2a3b-fb6b-f6d5-fc2be2a5c6b7@axentia.se> <7ed2cdb9-0719-3535-9e0a-fd9d393f1cd8@axentia.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ed2cdb9-0719-3535-9e0a-fd9d393f1cd8@axentia.se> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 26, 2022 at 01:35:09PM +0100, Peter Rosin wrote: > On 2022-01-26 13:04, Andy Shevchenko wrote: > > On Wed, Jan 26, 2022 at 11:26:50AM +0100, Peter Rosin wrote: > >> It's easy to both remove and to add back "the bigger object". I just > >> don't see the point of the churn. Technically you can probably rearrange > >> stuff in probe and remove the 2nd argument to ->props() altogether and > >> chase pointers from the dev object instead. I don't see the point of > >> that either. It doesn't really make things simpler, it doesn't really > >> make things easier to read. To me, it's just pointless churn. > > > > Since you still haven't got a point the conclusions are wrong. > > The point is (I dunno how more clear to make it) is to have proper > > layering from the (current) design perspective. > > I think got the gist of it. I simply do not agree with your conclusion > about what the "proper layering" should be. And I see no real argument against it. With the patch applied I see a better structure of the code and exactly necessary data to be passed to the method. Which makes me think that current implementation is either a leftover or was something like "let's take a bigger object _just in case_", which I can't take as a proper layering. -- With Best Regards, Andy Shevchenko