From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Dooks Subject: Re: Access 16bits address register in a device through I2C Date: Thu, 17 Jul 2008 17:26:20 +0100 Message-ID: <20080717162620.GO30539@fluff.org.uk> References: <56458e0807170913k10adc9k2c479eddbe600fdb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <56458e0807170913k10adc9k2c479eddbe600fdb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: Wen Wang Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Fri, Jul 18, 2008 at 12:13:30AM +0800, Wen Wang wrote: > Hi all, > I have a problem writing an I2C device driver and would greatly appreciate > if someone could provide some enlightenment. > > I'm working on a project needs to access registers with 16bits address > through I2C. But unfortunately I can not find a way to achieve this, cause > it seems that current kernel I2C framework only supports 8bits address > register. The easiest way is to create a function that uses a pair of i2c messages, the first message sends the 16bits of address pointer to the device, the second one either reads or writes data. > So I'm wondering do I miss something or what can I do? Any ideas? > > Thanks > Wen > _______________________________________________ > i2c mailing list > i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org > http://lists.lm-sensors.org/mailman/listinfo/i2c -- Ben (ben-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org, http://www.fluff.org/) 'a smiley only costs 4 bytes' _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c