From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 419502FB0A0; Fri, 14 Nov 2025 11:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.238.236.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763119142; cv=none; b=pnKZVFXx4wftVJyU7PMarGan3LqhU5z5l8ffqzjyV5TO1DVWRTgO1yIlqMWYw3+I7a18PiV8h2j8+oJ5MkrkpHYmQ00U5FaUJJm5Rre374mdYaEn1eRDcv3ZNR4AStGLXDLfduO5bHUi13WfvFQkyVC/DwKj1Nx+xPnCmHWSh2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763119142; c=relaxed/simple; bh=z6ucqdb/0st4NAumZ4Bw1GemAW/J5iVOQBoH6CJ5vm0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EHOtx9q6hvmf/0gYnsM3wuL3y7FXS71dy4DvuZcnFqGvzRHvQRzdnQfk1ofJttKaEAb5+ERIFB2byN0jpOOXQEFYQw5v8948zBuAJwjLhdPJyCZ4Y5nP3rNK3aKM+NggoXf0R+mf7NUMbZn9yhWKOKW+Kirhf1QTDcQbU6kTWEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=b8JITQcs; arc=none smtp.client-ip=178.238.236.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="b8JITQcs" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=References:In-Reply-To:Cc:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=z6ucqdb/0st4NAumZ4Bw1GemAW/J5iVOQBoH6CJ5vm0=; b=b8JITQcs5h8uu12DVMMbHGo5/2 iaSj7J2xvpXFExT2UxyuuCyNqm563s3uaM12qiASLQyhDt30y6aWAcOYQ9wfJVWcswZYUjLUyVX/w 0W8RzXSFGcnKUFamVrOeaRsWMi+B32eYK6HXddUU3LTM/IeVBu03q5mQvQvvLSts/57Z3/cTKiA7M 6VIwjWkCfFpvOeIH/T9briF4qGSQ41ZRtXAtMHVM50fDJ3UoieVRCXgCB3C0gHnQ/UyEx7jkIKEtM bDkIbGKVaQH/imazPtm2/vT0FrwRLj7lNsy4Stc9uSpa7wfGKXpZwdrPt3OO1AAB1/kulFx7b3WCH IIYRztcw==; Date: Fri, 14 Nov 2025 12:15:09 +0100 From: Andreas Kemnade To: Matti Vaittinen Cc: Matti Vaittinen , Matti Vaittinen , Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Liam Girdwood , Mark Brown , Michael Turquette , Stephen Boyd , Linus Walleij , Bartosz Golaszewski , Alexandre Belloni , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH v4 14/16] power: supply: bd71828: Support wider register addresses Message-ID: <20251114121509.629d171b@kemnade.info> In-Reply-To: <6248200397d3582fe926938736da66d6bbf9535d.1763022807.git.mazziesaccount@gmail.com> References: <6248200397d3582fe926938736da66d6bbf9535d.1763022807.git.mazziesaccount@gmail.com> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; aarch64-unknown-linux-gnu) Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 13 Nov 2025 10:55:39 +0200 Matti Vaittinen wrote: > As a side note, we can reduce the "wasted space / member / instance" from > 3 bytes to 1 byte, by using u16 instead of the unsigned int if needed. I > rather use unsigned int to be initially prepared for devices with 32 bit > registers if there is no need to count bytes. Well, this is totally internal to the module, so no ABI/API changes, so there is no advantage of using 32bit now I think. We can switch any time. But we have 32bit stuff in the regmap cache anyways, so that is not above the general level of wasting space. Regards, Andreas