From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: I2C reads and writes Date: Mon, 6 Oct 2008 11:18:47 +0200 Message-ID: <20081006111847.3826b789@hyperion.delvare> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: naveen krishna ch Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org List-Id: linux-i2c@vger.kernel.org Hi Nayva, On Mon, 6 Oct 2008 14:12:22 +0530, naveen krishna ch wrote: > I am working on a device driver (One touch). The registers of which are > 16bit wide and are addressed by 16 bit address. > The SMBus supports 16 bit read but address cannot be 16 bit in that case. Correct. > I used the i2c_transfer, i2c_master_send and i2c_master_recv combinations > to read and write data to and from the > registers of the device. Is this a good and neater way to do so. If not can > anyone suggest me a better one. This is the right way, yes. -- Jean Delvare _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c