From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [RFC/PATCH 0/3] OMAP3 I2C/SCCB support Date: Tue, 26 Jun 2012 23:37:10 +0200 Message-ID: <1570109.7kTIntEc04@avalon> References: <1340720229-30356-1-git-send-email-laurent.pinchart@ideasonboard.com> <2898283.yhxlxrlhzg@avalon> <20120626185616.7fafc53b@endymion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <20120626185616.7fafc53b-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jean Delvare Cc: jean-philippe francois , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-i2c@vger.kernel.org Hi Jean, On Tuesday 26 June 2012 18:56:16 Jean Delvare wrote: > On Tue, 26 Jun 2012 18:20:33 +0200, Laurent Pinchart wrote: > > It might be a good idea to implement i2c_smbus_*-like functions for 16-bit > > register addresses in the I2C core, they could be reused across drivers. > > Except that they would preferably not be called i2c_smbus_*, not being > part of the SMBus subset nor being commonly implemented by SMBus-only > controllers. Sure. We need another name. > Finding a proper name for these helpers function might be tough, as may be > figuring out which ones you really want to implement and which ones aren't > worth it. > > Also note that this is more or less what regmap is trying to do, so you > may want to check in that direction (see drivers/base/regmap) first. Thanks, I didn't know about that. -- Regards, Laurent Pinchart