Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761265AbZD0V71 (ORCPT ); Mon, 27 Apr 2009 17:59:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759165AbZD0V56 (ORCPT ); Mon, 27 Apr 2009 17:57:58 -0400 Received: from mail-ew0-f176.google.com ([209.85.219.176]:34528 "EHLO mail-ew0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760892AbZD0V54 (ORCPT ); Mon, 27 Apr 2009 17:57:56 -0400 MIME-Version: 1.0 In-Reply-To: <20090427180036.269a40b3@hyperion.delvare> References: <20090329174836.6de797d6@hyperion.delvare> <20090330104952.26f03c13@hyperion.delvare> <20090426085401.3788fc9c@hyperion.delvare> <20090427180036.269a40b3@hyperion.delvare> From: Kay Sievers Date: Mon, 27 Apr 2009 23:57:40 +0200 Message-ID: Subject: Re: Class device namespaces To: Jean Delvare Cc: Michael E Brown , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Matt Domsch Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 754 Lines: 18 On Mon, Apr 27, 2009 at 18:00, Jean Delvare wrote: > I'd like to give a try to converting i2c-adapter devices to bus devices > rather than class devices, if you think that's how things should be. > Can you please explain to me how this would be done? Register a "i2c" bus_type with the core, and instead of assigning dev.class = class, you assign dev.bus = bus to the devices you register, that should work, if there is nothing more complicated going on in the background. Thanks, Kay -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/