Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933693AbaLKDAI (ORCPT ); Wed, 10 Dec 2014 22:00:08 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:15028 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933176AbaLKDAG (ORCPT ); Wed, 10 Dec 2014 22:00:06 -0500 X-AuditID: cbfee68d-f79296d000004278-24-548908b1fd43 Message-id: <548908C2.1060906@samsung.com> Date: Thu, 11 Dec 2014 08:30:18 +0530 From: Pankaj Dubey User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-version: 1.0 To: Yadwinder Singh Brar Cc: "linux-arm-kernel@lists.infradead.org" , linux-samsung-soc , linux-kernel , Kukjin Kim , Russell King , =?UTF-8?B?SGVpa28gU3TDvGJuZXI=?= , Arnd Bergmann , Linus Walleij , Tomasz Figa , Rob Herring , thomas.ab@samsung.com, Grant Likely Subject: Re: [PATCH v4 1/2] soc: samsung: add exynos chipid driver support References: <1417594658-2931-1-git-send-email-pankaj.dubey@samsung.com> <1417594658-2931-2-git-send-email-pankaj.dubey@samsung.com> In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEIsWRmVeSWpSXmKPExsWyRsSkTncjR2eIQfM9C4u/k46xWxz4s4PR 4v+j16wWvQuusllM+bOcyWLT42usFpd3zWGzmHF+H5PF7cu8Fq17j7BbdCxjtFi16w+jxdzf jawOvB4tzT1sHr9/TWL02DnrLrvHplWdbB53ru1h89i8pN6jb8sqRo/t1+Yxe3zeJBfAGcVl k5Kak1mWWqRvl8CV0dTxg7HgEW/F1G85DYzzuboYOTgkBEwklu8X72LkBDLFJC7cW8/WxcjF ISSwlFHi05mnTBAJE4lHHeeYIRKLGCXOXXrODJIQEmhlklja7Ali8wpoSXQc3coKYrMIqEp8 2rCWHc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Mf wBLCAl4SM74sYYbYfIZRoq97Llg3p0CwRFPXTbBtzAJmEl9eHoay5SU2r3nLPIFRYBaSJbOQ lM1CUraAkXkVo2hqQXJBcVJ6rqFecWJucWleul5yfu4mRnDSeCa1g3Flg8UhRgEORiUe3oDL 7SFCrIllxZW5hxglOJiVRHiTbnSECPGmJFZWpRblxxeV5qQWH2I0BYbBRGYp0eR8YELLK4k3 NDYxNzU2tTSxMDGzVBLnVbJvCxESSE8sSc1OTS1ILYLpY+LglGpgVNXP3Cl0W+OG4L1pZd/Y o81f7pctMTi8Vr/c6tDDtU/Tdp1O9H918z3fxLJg55MuR75vYnRcc+KTpf+07KXpsiFrtusm z67ZcJxPsK9wj7pB0+KvmmHW94IvZC82lDw3s+Rk+dT1a6RN3a3LNit9Kbt9TqFC4KIy/9Pc JWucMqTvtjew5xq8VWIpzkg01GIuKk4EAFDt6RAwAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yadwinder, On Thursday 04 December 2014 11:56 PM, Yadwinder Singh Brar wrote: > Hi Pankaj, > > > On Wed, Dec 3, 2014 at 1:47 PM, Pankaj Dubey > wrote: > > Exynos SoCs have Chipid, for identification of product IDs > and SoC revisions. This patch intendes to provide initialization > code for all these functionalites, at the same time it provides some > sysfs entries for accessing these information to userspace. > > This driver usese existing binding for exnos-chipid. > > [ ... ] > > + > +static unsigned int soc_product_id; > +static unsigned int soc_revision; > + > +int exynos_product_id(void) > +{ > + return soc_product_id; > +} > +EXPORT_SYMBOL(exynos_product_id); > + > +int exynos_revision(void) > +{ > + return soc_revision; > +} > +EXPORT_SYMBOL(exynos_revision); > + > > > How about exporting only a struct containing members : soc_revision, > soc_product_id OK, keeping in mind that chipid driver might be used from other drivers as well (such as asv) other than from mach-exynos, we can do this. > and may be some more like asv/fused_info and keeping these function as Other members such as fused_info etc. can be added as and when required. As of now there is no active user of all those. > inlines ? > > +static const char *exynos_product_id_to_name(unsigned int product_id) > > > __init ? hmm .. I think almost whole driver other than __ATTR funcs. > OK, I'll take care of this in next patch version. > Otherwise it looks nice to me :) > > Best Regards, > Yadwinder Thanks for review. Pankaj Dubey -- 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/