/* linux/arch/arm/plat-samsung/platformdata.c * * Copyright 2010 Ben Dooks <ben-linux <at> fluff.org> * * Helper for platform data setting * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/kernel.h> #include <linux/slab.h> #include <linux/string.h> #include <linux/platform_device.h> #include <plat/devs.h> #include <plat/sdhci.h>
void __init *s3c_set_platdata(void *pd, size_t pdsize, struct platform_device *pdev) { void *npd; if (!pd) { /* too early to use dev_name(), may not be registered */ printk(KERN_ERR "%s: no platform data supplied\n", pdev->name); return NULL; } npd = kmemdup(pd, pdsize, GFP_KERNEL); if (!npd) { printk(KERN_ERR "%s: cannot clone platform data\n", pdev->name); return NULL; } pdev->dev.platform_data = npd; return npd; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ben Dooks | 86 | 100.00% | 1 | 100.00% |
Total | 86 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Banajit Goswami | 101 | 80.80% | 1 | 33.33% |
Jaehoon Chung | 14 | 11.20% | 1 | 33.33% |
Sangwook Lee | 10 | 8.00% | 1 | 33.33% |
Total | 125 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Banajit Goswami | 104 | 45.22% | 1 | 20.00% |
Ben Dooks | 99 | 43.04% | 1 | 20.00% |
Jaehoon Chung | 14 | 6.09% | 1 | 20.00% |
Sangwook Lee | 10 | 4.35% | 1 | 20.00% |
Paul Gortmaker | 3 | 1.30% | 1 | 20.00% |
Total | 230 | 100.00% | 5 | 100.00% |