Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751256AbdFBQy5 (ORCPT ); Fri, 2 Jun 2017 12:54:57 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:42416 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbdFBQyz (ORCPT ); Fri, 2 Jun 2017 12:54:55 -0400 Date: Fri, 2 Jun 2017 17:54:47 +0100 From: Mark Brown To: Tim Harvey Cc: "linux-kernel@vger.kernel.org" , linux-media Message-ID: <20170602165447.kflg2u6ovdrwcwjo@sirena.org.uk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aftmt334f7tolisr" Content-Disposition: inline In-Reply-To: X-Cookie: Every solution breeds new problems. User-Agent: NeoMutt/20170306 (1.8.0) X-SA-Exim-Connect-IP: 2001:470:1f1d:6b5::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: regmap for i2c pages X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: No (on mezzanine.sirena.org.uk); Unknown failure Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1240 Lines: 33 --aftmt334f7tolisr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 01, 2017 at 11:37:43PM -0700, Tim Harvey wrote: > I believe this is a very common i2c register mechanism but I'm not > clear what the best way to use i2c regmap for this is. I'm reading > that regmap 'handles register pages' but I'm not clear if that's the > same thing I'm looking for. If so, are there any examples of this? I > see several i2c drivers that reference pages but it looks to me that > each page is a different i2c slave address which is something > different. You're looking for regmap_range (search for window in regmap.h). --aftmt334f7tolisr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlkxmFMACgkQJNaLcl1U h9DNpwf/UPa0+48wnCqpY9pxU63YTKEzn6jEYFlXDJsMwJHxut4FM1CSoEi2aubn ntOpKSj7llZkhZR8c+pfOw/hLx7Gi1EevzEk5Tg7BtRbcaPXoG3j93Eah1tNawuc mAPwFdb4sQYD2UIxXN5Z6NYcntvB0hyCDcPJK18tHsvBp8UE/+WNGc2Azowg/3si reIzkT7t1f7ksTQEDClr7UoIgnuBgWbZ8mgFsYaTyMextFoHclBY+npk2DPeU1uB XVxnb6gjcUmlIaMZMDs3+1Ts1qe9VQEzrC/GkPwxZ7LpgnQZ59WFuYYoId4HGZFt XDSNc7AmqQvK4w0QPJcFHo3eJ24yPQ== =shLt -----END PGP SIGNATURE----- --aftmt334f7tolisr--