cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/mach-davinci/pdata-quirks.c

/*
 * Legacy platform_data quirks
 *
 * Copyright (C) 2016 BayLibre, Inc
 *
 * 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/of_platform.h>

#include <mach/common.h>


struct pdata_init {
	
const char *compatible;
	
void (*fn)(void);
};


static void pdata_quirks_check(struct pdata_init *quirks) { while (quirks->compatible) { if (of_machine_is_compatible(quirks->compatible)) { if (quirks->fn) quirks->fn(); break; } quirks++; } }

Contributors

PersonTokensPropCommitsCommitProp
Kevin Hilman45100.00%1100.00%
Total45100.00%1100.00%

static struct pdata_init pdata_quirks[] __initdata = { { /* sentinel */ }, };
void __init pdata_quirks_init(void) { pdata_quirks_check(pdata_quirks); }

Contributors

PersonTokensPropCommitsCommitProp
Kevin Hilman13100.00%1100.00%
Total13100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Kevin Hilman100100.00%1100.00%
Total100100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.