Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp89132rwd; Mon, 12 Jun 2023 10:26:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XsRjbJpBY1AleoryrMhbt99bIE2CDIb2eLF3OrZubkbmYV4KPgURkUMywqGCjT1OYDccF X-Received: by 2002:a17:90a:2:b0:259:17bc:1a3c with SMTP id 2-20020a17090a000200b0025917bc1a3cmr8561458pja.7.1686590812369; Mon, 12 Jun 2023 10:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686590812; cv=none; d=google.com; s=arc-20160816; b=Kidd+rhWVYhTRf471DjINrc9UP8GUPKCl2yokPwcvvVHz5cuFw7eE+In+EtT5ErhJt Zj/1TjRXCKkB/11xZO0NQw8CrKOg+xiIMucHCP5RkOkw0K+WbCQSGoiGJDdB5UjJKM/Q X2zoISKK0aZNpqX8zAinfTPn5PMgFcR8OY9JlyboLov8iGUOlrVQ+OkKgDYvR+A0k2L3 sFkRabWwXaw8+c8Y4Gn8Sf/wmovr3eb6Xvn0LeGvnA3T8rImHYPq3MTok/VzbR21Rfcn /gdLpZ4y8c6f6DiG22B1G1DwhqOZSbbcg26Piwxxd8v9soE5ZiTcyQHL180eZ0UGNayb yG7A== 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=JD1XuQIz5Ba9j4b9nzGEG5sqmOEbtRRtXPBvKicmJxg=; b=X52cfFm9WeQ5SW+I/3SWQW01wHCKoVl+DjWqqicMAjBIDCgF+3Gccvjkn3Bfm2/jnB 1BRz5qHYw9yWptnS15TMd6JYzQOE73uds0U56C8lzJVxC0ir6R50joGno6d3ypIPyzDG C+9M3Txp4SGH+ztr9q+e7aj8N/g66IjQkbZibLAO55tmz/Ver5RAmD1LoCGiJKaLC2YT O6mW8MK8xvWY6oaEgZZIqKc6BPGzj0ouc49DvuJ7dWEU0x8f02vXLduzo2FqS8kwbvvi KT9DmyYAwQEBfYHhE5gu2F5RYuBhJA5WiCJqSC4wRVdTABdOTxvTBXAo8AIa4uASZ7Hv LRNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kd0p6Gil; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a17090a710700b0025c038134aasi464100pjk.163.2023.06.12.10.26.38; Mon, 12 Jun 2023 10:26:52 -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=@intel.com header.s=Intel header.b=kd0p6Gil; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231252AbjFLRNl (ORCPT + 99 others); Mon, 12 Jun 2023 13:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbjFLRNh (ORCPT ); Mon, 12 Jun 2023 13:13:37 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7F54188; Mon, 12 Jun 2023 10:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686590016; x=1718126016; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0IhzFlc0JSqsC8g90Ed8ErIHbGi6v7rirVUCLlYWgTI=; b=kd0p6GilJH70mqsdst+DgKhzTlwTO/vveuLVPVy+dYef0DGZAZtYU4wA LEFkDn/2D4xgcJAUGFt+53yqep1+DwBelEkVQaYmQjox4jFAuTVzeS1cp omG4WYaEbZX9c/N6/IMH+8INGeHAwyG1cOiFNtQ3QHP5clKGh3VlKVH2x 9XIYPjTNVkfZyld6F3wpi1ViqohHC3EOF/ORja5bkfKsqi/TiKu7lUnpC wJtsixCf0WsouvlIgqEqrqdF4wXrEFlpWgbZFVfOsD0cEqTsS80aC9gnV NLH9UASy+H196T6C9RGGlw9+jsiPZ+BYKAjG8O8yffla4AtvRkcMMjI+f A==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="360590940" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="360590940" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 10:13:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="688714744" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="688714744" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP; 12 Jun 2023 10:13:32 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q8l6h-003Ai5-0z; Mon, 12 Jun 2023 20:13:31 +0300 Date: Mon, 12 Jun 2023 20:13:31 +0300 From: Andy Shevchenko To: Mehdi Djait Cc: jic23@kernel.org, mazziesaccount@gmail.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 5/7] iio: accel: kionix-kx022a: Refactor driver and add chip_info structure Message-ID: References: <3a41a5ae9857cacdb062c398715a5938ccd47014.1686578554.git.mehdi.djait.k@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Mon, Jun 12, 2023 at 06:31:54PM +0200, Mehdi Djait wrote: > On Mon, Jun 12, 2023 at 06:54:34PM +0300, Andy Shevchenko wrote: > > On Mon, Jun 12, 2023 at 04:22:08PM +0200, Mehdi Djait wrote: ... > > > struct kx022a_data { > > > + const struct kx022a_chip_info *chip_info; > > > struct regmap *regmap; > > > > I would suggest to run bloat-o-meter with this version and if you place > > chip_info after regmap. Does it gain us some memory? > > I used the bloat-o-meter on the two .ko files (this version and the the > one where chip_info after regamp) Is this what you asked for ? Yes. I assume the old one is the current as in this patch? If so, you know what to do in the next version :-) > add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-20 (-20) > Function old new delta > kx132_get_fifo_bytes 148 144 -4 > kx022a_trigger_set_state 352 348 -4 > kx022a_read_raw 380 376 -4 > kx022a_buffer_predisable 248 244 -4 > kx022a_buffer_postenable 296 292 -4 > Total: Before=11244, After=11224, chg -0.18% -- With Best Regards, Andy Shevchenko