From 1767f908af327fa388b1c66883760ad851267013 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 3 Mar 2009 18:28:13 -0800 Subject: auto import from //depot/cupcake/@135843 --- libc/kernel/common/linux/platform_device.h | 39 ------------------------------ 1 file changed, 39 deletions(-) delete mode 100644 libc/kernel/common/linux/platform_device.h (limited to 'libc/kernel/common/linux/platform_device.h') diff --git a/libc/kernel/common/linux/platform_device.h b/libc/kernel/common/linux/platform_device.h deleted file mode 100644 index a761b5b..0000000 --- a/libc/kernel/common/linux/platform_device.h +++ /dev/null @@ -1,39 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - **************************************************************************** - ****************************************************************************/ -#ifndef _PLATFORM_DEVICE_H_ -#define _PLATFORM_DEVICE_H_ - -#include - -struct platform_device { - const char * name; - u32 id; - struct device dev; - u32 num_resources; - struct resource * resource; -}; - -#define to_platform_device(x) container_of((x), struct platform_device, dev) - -struct platform_driver { - int (*probe)(struct platform_device *); - int (*remove)(struct platform_device *); - void (*shutdown)(struct platform_device *); - int (*suspend)(struct platform_device *, pm_message_t state); - int (*resume)(struct platform_device *); - struct device_driver driver; -}; - -#define platform_get_drvdata(_dev) dev_get_drvdata(&(_dev)->dev) -#define platform_set_drvdata(_dev,data) dev_set_drvdata(&(_dev)->dev, (data)) - -#endif -- cgit v1.1