Hi Pankaj,
On Wed, Dec 3, 2014 at 1:47 PM, Pankaj Dubey <pankaj.dubey@xxxxxxxxxxx
<mailto:pankaj.dubey@xxxxxxxxxxx>> 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
and may be some more like asv/fused_info and keeping these function as
inlines ?
+static const char *exynos_product_id_to_name(unsigned int product_id)
__init ? hmm .. I think almost whole driver other than __ATTR funcs.
Otherwise it looks nice to me :)
Best Regards,
Yadwinder