Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752287AbbFXKGD (ORCPT ); Wed, 24 Jun 2015 06:06:03 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:33459 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752250AbbFXKFx (ORCPT ); Wed, 24 Jun 2015 06:05:53 -0400 Message-ID: <558A80FA.3020603@linaro.org> Date: Wed, 24 Jun 2015 11:05:46 +0100 From: Srinivas Kandagatla User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Stephen Boyd , linux-arm-kernel@lists.infradead.org CC: Maxime Ripard , Rob Herring , Kumar Gala , Mark Brown , s.hauer@pengutronix.de, Greg Kroah-Hartman , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, arnd@arndb.de, pantelis.antoniou@konsulko.com, mporter@konsulko.com Subject: Re: [PATCH v5 03/11] nvmem: Add a simple NVMEM framework for nvmem providers References: <1432226535-8640-1-git-send-email-srinivas.kandagatla@linaro.org> <1432226583-8775-1-git-send-email-srinivas.kandagatla@linaro.org> <5580A678.4080304@codeaurora.org> <5582BDAE.5040008@linaro.org> <5589F8C2.3030502@codeaurora.org> In-Reply-To: <5589F8C2.3030502@codeaurora.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1276 Lines: 36 On 24/06/15 01:24, Stephen Boyd wrote: > Can you assign the attributes to the device_type in the nvmem::struct > device? I don't see why these attributes need to be part of the class. > I will fix this. >>> >> >>>> >>>+{ >>>> >>>+ return class_register(&nvmem_class); >>> >> >>> >>I thought class was on the way out? Aren't we supposed to use bus types >>> >>for new stuff? >> >Do you remember any conversation on the list about this? I could not >> >find it on web. >> > >> >on the other hand, nvmem is not really a bus, making it a bus type >> >sounds incorrect to me. >> > > I found this post on the cpu class that Sudeep tried to introduce[1]. > And there's this post from Kay that alludes to a unification of busses > and classes[2]. And some other post where Kay says class is dead [3]. Thanks for the links, Yep, looks like Class is dead, I will change the code to use bus type instead. > > [1]https://lkml.org/lkml/2014/8/21/191 > [2]https://lwn.net/Articles/471821/ > [3]https://lkml.org/lkml/2010/11/11/17 --srini -- 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/