merge 2.6.13-rc4 with ACPI's to-linus tree
This commit is contained in:
@@ -811,9 +811,9 @@ struct input_dev {
|
||||
|
||||
void *private;
|
||||
|
||||
char *name;
|
||||
char *phys;
|
||||
char *uniq;
|
||||
const char *name;
|
||||
const char *phys;
|
||||
const char *uniq;
|
||||
struct input_id id;
|
||||
|
||||
unsigned long evbit[NBITS(EV_MAX)];
|
||||
|
||||
@@ -971,6 +971,8 @@ static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int en
|
||||
|
||||
#define isa_bridge ((struct pci_dev *)NULL)
|
||||
|
||||
#define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)
|
||||
|
||||
#else
|
||||
|
||||
/*
|
||||
@@ -985,9 +987,6 @@ static inline int pci_proc_domain(struct pci_bus *bus)
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)
|
||||
|
||||
#endif /* !CONFIG_PCI */
|
||||
|
||||
/* these helpers provide future and backwards compatibility
|
||||
|
||||
@@ -42,8 +42,7 @@ struct uinput_request {
|
||||
int code; /* UI_FF_UPLOAD, UI_FF_ERASE */
|
||||
|
||||
int retval;
|
||||
wait_queue_head_t waitq;
|
||||
int completed;
|
||||
struct completion done;
|
||||
|
||||
union {
|
||||
int effect_id;
|
||||
@@ -62,7 +61,7 @@ struct uinput_device {
|
||||
|
||||
struct uinput_request *requests[UINPUT_NUM_REQUESTS];
|
||||
wait_queue_head_t requests_waitq;
|
||||
struct semaphore requests_sem;
|
||||
spinlock_t requests_lock;
|
||||
};
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
|
||||
25
include/linux/usb_input.h
Normal file
25
include/linux/usb_input.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef __USB_INPUT_H
|
||||
#define __USB_INPUT_H
|
||||
|
||||
/*
|
||||
* Copyright (C) 2005 Dmitry Torokhov
|
||||
*
|
||||
* 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/usb.h>
|
||||
#include <linux/input.h>
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
static inline void
|
||||
usb_to_input_id(const struct usb_device *dev, struct input_id *id)
|
||||
{
|
||||
id->bustype = BUS_USB;
|
||||
id->vendor = le16_to_cpu(dev->descriptor.idVendor);
|
||||
id->product = le16_to_cpu(dev->descriptor.idProduct);
|
||||
id->version = le16_to_cpu(dev->descriptor.bcdDevice);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user