From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: platform_data when using of? Date: Wed, 23 Apr 2008 20:30:12 +0200 Message-ID: <20080423203012.24ed38b6@hyperion.delvare> References: <20080423164523.GA4190@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080423164523.GA4190-bIcnvbaLZ9MEGnE8C9+IrQ@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: Wolfram Sang Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org List-Id: linux-i2c@vger.kernel.org Hi Wolfram, On Wed, 23 Apr 2008 18:45:23 +0200, Wolfram Sang wrote: > (As at24 shall be a generic driver, data about the eeprom type needs to > be provided.) Each i2c driver can support many different devices, which are differentiated simply by their name. So the driver can behave differently for each device type as needed. But of course this doesn't cover the way the chip is wired, e.g. interrupt setup, pin polarities etc. For that you really need platform data, carried in a driver-specific structure. -- Jean Delvare _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c