| Age | Commit message (Collapse) | Author |
|
|
|
Name: Designated initializers for drivers/usb
Author: Rusty Russell
Status: Trivial
D: The old form of designated initializers are obsolete: we need to
D: replace them with the ISO C forms before 2.6. Gcc has always supported
D: both forms anyway.
|
|
This is a merge of a bunch of SMP and locking fixes for the USB code
that Oliver has sent me (greg k-h) over the past few weeks.
|
|
minor number handling
|
|
ioctl(LPGETSTATUS) is known to put the status into an int. The usblp
driver has a problem in this area as it does not put it into an int but
into a char. Let's see :
from drivers/char/lp.c : lp_ioctl :
int status
copy_to_user((int *) arg, &status, sizeof(int))
from drivers/usb/printer.c : usblp_ioctl :
unsigned char status;
copy_to_user ((unsigned char *)arg, &status, 1)
Even though in most cases it can work unnoticed on little-endian
machines ;o), it's broken on non-little-endian machines (I got bitten on
PPC).
|
|
pay attention to return value of usb_submit_urb as found by the CHECKER tool.
|
|
DEVICE_ID_SIZE clashes with the define in include/linux/device.h
|
|
fix a failure to free a minor in the error path of probe
|
|
cleaned up checking the return value of usb_register_dev()
|
|
USB printer bugfix
looking through printer.c in preparation for shifting devfs
support to usbcore I noticed that printer advertises a device
through devfs before it can be opened.
As devfs, or more precisely devfsd can be used to trigger actions
this matters and is wrong.
|
|
|
|
Took out the limitation that drivers had to take up 16 minors. Now
they can use only 1 if they want to.
|
|
moved files to different subdirectories to make try to make sense
of the current mess, and to allow usb client drivers to integrate into
the tree easier.
|