acpi_drivers.h (21d37bbc65e39a26856de6b14be371ff24e0d03f) | acpi_drivers.h (d94d3dff0d5da3bdfcbb424ba5c08534521fd690) |
---|---|
1/* 2 * acpi_drivers.h ($Revision: 31 $) 3 * 4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * 7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 * --- 108 unchanged lines hidden (view full) --- 117#if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) 118extern int is_dock_device(acpi_handle handle); 119extern int register_dock_notifier(struct notifier_block *nb); 120extern void unregister_dock_notifier(struct notifier_block *nb); 121extern int register_hotplug_dock_device(acpi_handle handle, 122 acpi_notify_handler handler, void *context); 123extern void unregister_hotplug_dock_device(acpi_handle handle); 124#else | 1/* 2 * acpi_drivers.h ($Revision: 31 $) 3 * 4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * 7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 * --- 108 unchanged lines hidden (view full) --- 117#if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) 118extern int is_dock_device(acpi_handle handle); 119extern int register_dock_notifier(struct notifier_block *nb); 120extern void unregister_dock_notifier(struct notifier_block *nb); 121extern int register_hotplug_dock_device(acpi_handle handle, 122 acpi_notify_handler handler, void *context); 123extern void unregister_hotplug_dock_device(acpi_handle handle); 124#else |
125#define is_dock_device(h) (0) 126#define register_dock_notifier(nb) (-ENODEV) 127#define unregister_dock_notifier(nb) do { } while(0) 128#define register_hotplug_dock_device(h1, h2, c) (-ENODEV) 129#define unregister_hotplug_dock_device(h) do { } while(0) | 125static inline int is_dock_device(acpi_handle handle) 126{ 127 return 0; 128} 129static inline int register_dock_notifier(struct notifier_block *nb) 130{ 131 return -ENODEV; 132} 133static inline void unregister_dock_notifier(struct notifier_block *nb) 134{ 135} 136static inline int register_hotplug_dock_device(acpi_handle handle, 137 acpi_notify_handler handler, void *context) 138{ 139 return -ENODEV; 140} 141static inline void unregister_hotplug_dock_device(acpi_handle handle) 142{ 143} |
130#endif 131#endif /*__ACPI_DRIVERS_H__*/ | 144#endif 145#endif /*__ACPI_DRIVERS_H__*/ |