cregit-Linux how code gets into the kernel

Release 4.12 include/linux/sys_soc.h

Directory: include/linux
/*
 * Copyright (C) ST-Ericsson SA 2011
 * Author: Lee Jones <lee.jones@linaro.org> for ST-Ericsson.
 * License terms:  GNU General Public License (GPL), version 2
 */
#ifndef __SOC_BUS_H

#define __SOC_BUS_H

#include <linux/device.h>


struct soc_device_attribute {
	
const char *machine;
	
const char *family;
	
const char *revision;
	
const char *soc_id;
	
const void *data;
};

/**
 * soc_device_register - register SoC as a device
 * @soc_plat_dev_attr: Attributes passed from platform to be attributed to a SoC
 */
struct soc_device *soc_device_register(
	struct soc_device_attribute *soc_plat_dev_attr);

/**
 * soc_device_unregister - unregister SoC device
 * @dev: SoC device to be unregistered
 */
void soc_device_unregister(struct soc_device *soc_dev);

/**
 * soc_device_to_device - helper function to fetch struct device
 * @soc: Previously registered SoC device container
 */
struct device *soc_device_to_device(struct soc_device *soc);

#ifdef CONFIG_SOC_BUS
const struct soc_device_attribute *soc_device_match(
	const struct soc_device_attribute *matches);
#else

static inline const struct soc_device_attribute *soc_device_match( const struct soc_device_attribute *matches) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Geert Uytterhoeven19100.00%1100.00%
Total19100.00%1100.00%

#endif #endif /* __SOC_BUS_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Lee Jones7262.07%133.33%
Geert Uytterhoeven2622.41%133.33%
Arnd Bergmann1815.52%133.33%
Total116100.00%3100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.