From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.13 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796317833; b=Zbj/nDYXArz+3huyekG8Xm9Vd2yJj8h0gY0Tyd4y5yvdfTsZ9lsQ1SvJCBkGqd/00iys dlTitU/sT40M5ZdH9VBJdbrj87gye0goy01nNyLtVAGeogevxVk4xZKUUwJRc0bQQ+Ef4 WnziV02tFEY9dBNbLCAtwqTmABUzenCFjgSbSomxd7/PMQxZ9ocpc0zo35u6YHhDNSVKC RsLidw/fzn7ue0ut6HxqSdH3yLRF1uCFwZn9Rl1qZqdVW88smc/OM3TIKBGZH8dF3RC3s 5I8yewTyD/j///6dgJVOWW+AtYVp7WNf9SGTrTRHGoPQD6Rr6oL38G7kf3DMa/81Xjg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796317833; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=1ybTgb31tIAqMaYhIGvaDKEdnsCAw6qWjKKnHEMluMk=; b=iHqdr/i6d5dWtTnJxPxjE9nBmnmQvDHYqxTgJrB5vND8p/eVlG0cSTzHRCPsglU5ZNMn N6pqy46negFZjtSU4EXqnBPOBYm0ZW8OInIiHtIPypk4v904amNxdRkwVpb8lW3EybAFV U0Snq+hICQwndjBF8WifKIUUVp3rxWkxTo4cSElWJGu2ZnygKygfG9C2cuE6LeEJvjhzg MJ6JmqKIUZpcciyWe2EI4qe08Lq7Kk0pcexIpsVb1cpQwGG+JRCN9oFY+UFnvurJwaMy2 HrDqFNL/HRLwGtvoxxx3HA4tBA8GWOS2h/SR+uH1Z8iOsrxRbbLDtHEaK2dVfxF0M6A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=l22yf9Ml; arc=none smtp.remote-ip=192.198.163.13 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6B50606A322; Thu, 3 Dec 2026 17:10:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B6B50606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=l22yf9Ml DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796317832; x=1827853832; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1ybTgb31tIAqMaYhIGvaDKEdnsCAw6qWjKKnHEMluMk=; b=l22yf9MlQrsmiLCo4hpBpyMfsL55MkfYbEmwOJCXVH7S7xoLXchSB9Kf x4nGrlQPi+kX3jmxVatfn58374asAywJohmLnUURKsZMRqmPBJTnIJtBa xh1GQj/NsBZGuYfc7ffyi8TKBDnYgvaNUl+vpxiYhxksebAwzsBLTg1LD l2IkAfBrzieURebT0alI4gY86t1hJhrITyEFTPBYpV6XF2t7RsdzuHgCs xdeL6Q25HEOvS2a8gm1n9clkp8whe05v2h4YaaaCmZGzxCOByHKvuXxyl YW2SPgY/XWOwfmN6xTQ0nwgXhemSB0IbvbNppwqy1oYNVUrUj3cWuhh68 Q==; X-CSE-ConnectionGUID: Q/Ge8BZ2TRmeSQNJ9hPDgg== X-CSE-MsgGUID: 33yqF3gLQHWrcHiPx7tIHQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5260344" X-IronPort-AV: E=Sophos;i="6.29,248,1794902400"; d="scan'208";a="5260344" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 09:10:32 -0800 X-CSE-ConnectionGUID: tWXmJLuSRw6BRcn0AFL7rg== X-CSE-MsgGUID: 9r8vlys9TJSLldomGAohpA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="13720721" Received: from inaky-mobl1.amr.corp.intel.com (HELO localhost) ([10.245.244.115]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 09:10:28 -0800 Date: Thu, 3 Dec 2026 19:10:26 +0200 From: Andy Shevchenko To: Matti Vaittinen Cc: Matti Vaittinen , Matti Vaittinen , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] iio: dac: rohm-bd79703: Avoid copying chip-data Message-ID: References: X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, Dec 02, 2026 at 03:39:08PM +0200, Matti Vaittinen wrote: > > The bd79703 driver data has been divided into a static, chip specific > data, and to an instance specific data, which can be modified at run-time. > > At the moment, only the instance-specific data is usable after probe, > and only chip-type dependent constant 'num_vfs_chan', is copied to > instance-specific struct. > > Upcoming support for bd7971x family of chips will introduce a need to > use a few more chip-specific static values at runtime. Copying them to > dynamic private data struct would get wasteful. > > Save some bytes and minimize data copying by storing a pointer to the > constant, chip-type specific data, instead of copying all the values into > the instance specific data. Despite our discussion about SI unit suffices, this looks good. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko