mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ACPI: dock driver
Create a driver which lives in the acpi subsystem to handle dock events. This driver is not an "ACPI" driver, because acpi drivers require that the object be present when the driver is loaded. Signed-off-by: Kristen Carlson Accardi <[email protected]> Cc: Dave Hansen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
a6a888b3c2
commit
a5e1b94008
6 changed files with 788 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ int acpi_bus_add(struct acpi_device **child, struct acpi_device *parent,
|
|||
acpi_handle handle, int type);
|
||||
int acpi_bus_trim(struct acpi_device *start, int rmdevice);
|
||||
int acpi_bus_start(struct acpi_device *device);
|
||||
|
||||
acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle *ejd);
|
||||
int acpi_match_ids(struct acpi_device *device, char *ids);
|
||||
int acpi_create_dir(struct acpi_device *);
|
||||
void acpi_remove_dir(struct acpi_device *);
|
||||
|
|
|
|||
|
|
@ -110,4 +110,21 @@ int acpi_processor_set_thermal_limit(acpi_handle handle, int type);
|
|||
|
||||
extern int acpi_specific_hotkey_enabled;
|
||||
|
||||
/*--------------------------------------------------------------------------
|
||||
Dock Station
|
||||
-------------------------------------------------------------------------- */
|
||||
#if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE)
|
||||
extern int is_dock_device(acpi_handle handle);
|
||||
extern int register_dock_notifier(struct notifier_block *nb);
|
||||
extern void unregister_dock_notifier(struct notifier_block *nb);
|
||||
extern int register_hotplug_dock_device(acpi_handle handle,
|
||||
acpi_notify_handler handler, void *context);
|
||||
extern void unregister_hotplug_dock_device(acpi_handle handle);
|
||||
#else
|
||||
#define is_dock_device(h) (0)
|
||||
#define register_dock_notifier(nb) (-ENODEV)
|
||||
#define unregister_dock_notifier(nb) do { } while(0)
|
||||
#define register_hotplug_dock_device(h1, h2, c) (-ENODEV)
|
||||
#define unregister_hotplug_dock_device(h) do { } while(0)
|
||||
#endif
|
||||
#endif /*__ACPI_DRIVERS_H__*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue