From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 1 Oct 2020 10:08:34 -0400 Subject: [PATCH v3 3/9] regmap: Allow specifying read/write width In-Reply-To: <20200924043418.5355-4-p.yadav@ti.com> References: <20200924043418.5355-1-p.yadav@ti.com> <20200924043418.5355-4-p.yadav@ti.com> Message-ID: <20201001140834.GY14816@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Sep 24, 2020 at 10:04:12AM +0530, Pratyush Yadav wrote: > Right now, regmap_read() and regmap_write() read/write a 32-bit value > only. To write other lengths, regmap_raw_read() and regmap_raw_write() > need to be used. > > This means that any driver ported from Linux that relies on > regmap_{read,write}() to know the size already has to be updated at each > callsite. This makes the port harder to maintain. > > So, allow specifying the read/write width to make it easier to port the > drivers, since now the only change needed is when initializing the > regmap. > > Signed-off-by: Pratyush Yadav > Reviewed-by: Simon Glass Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: