// SPDX-License-Identifier: GPL-2.0 // // Copyright 2010 Ben Dooks <ben-linux <at> fluff.org> // // Helper for platform data setting #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) return NULL; pdev->dev.platform_data = npd; return npd; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ben Dooks | 74 | 100.00% | 1 | 100.00% |
Total | 74 | 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 | 46.85% | 1 | 16.67% |
Ben Dooks | 88 | 39.64% | 1 | 16.67% |
Jaehoon Chung | 14 | 6.31% | 1 | 16.67% |
Sangwook Lee | 10 | 4.50% | 1 | 16.67% |
Krzysztof Kozlowski | 5 | 2.25% | 1 | 16.67% |
Paul Gortmaker | 1 | 0.45% | 1 | 16.67% |
Total | 222 | 100.00% | 6 | 100.00% |