From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759895Ab2BNJQS (ORCPT ); Tue, 14 Feb 2012 04:16:18 -0500 Received: from zone0.gcu-squad.org ([212.85.147.21]:35042 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756487Ab2BNJQM (ORCPT ); Tue, 14 Feb 2012 04:16:12 -0500 Date: Tue, 14 Feb 2012 10:16:04 +0100 From: Jean Delvare To: Wolfram Sang , Axel Lin Cc: linux-kernel@vger.kernel.org, Guenter Roeck , Michael Lawnick , Ben Dooks , linux-i2c@vger.kernel.org Subject: Re: [PATCH] i2c: convert drivers/i2c/* to use module_i2c_driver() Message-ID: <20120214101604.658cac32@endymion.delvare> In-Reply-To: <20120214101013.4133784e@endymion.delvare> References: <1329123903.13995.1.camel@phoenix> <20120213222643.GA22686@pengutronix.de> <20120214101013.4133784e@endymion.delvare> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.7; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Feb 2012 10:10:13 +0100, Jean Delvare wrote: > On Mon, 13 Feb 2012 23:26:43 +0100, Wolfram Sang wrote: > > On Mon, Feb 13, 2012 at 05:05:03PM +0800, Axel Lin wrote: > > > This patch converts the drivers in drivers/i2c/* to use the > > > module_i2c_driver() macro which makes the code smaller and a bit simpler. > > > > > > Signed-off-by: Axel Lin > > > Cc: Wolfram Sang > > > Cc: Guenter Roeck > > > Cc: Jean Delvare > > > Cc: Michael Lawnick > > > Cc: Ben Dooks > > > > Acked-by: Wolfram Sang > > Patch applied, thanks. Hmm, on second thought... I'm not going to apply the i2c-smbus patch. This is a special module, it isn't a device driver per se. It happens that right now the only SMBus extension supported by the i2c-smbus module is SMBus Alert and it happens that this is implemented as an i2c_driver, but as we add support for more SMBus extensions to that driver, the init and exit functions will likely become more complex, and then we'd have to move away from module_i2c_driver(). So I'd rather not use it to start with. I am taking the drivers/i2c/muxes/pca954*.c parts though. -- Jean Delvare