]> git.baikalelectronics.ru Git - kernel.git/commit
W1: w1_int.c use first available master number
authorDavid Fries <david@fries.net>
Thu, 16 Oct 2008 05:04:53 +0000 (22:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:50 +0000 (11:21 -0700)
commit047b8ee2b2dc213ffc2d08d3506a99f2478b6192
tree2ad744edff4aa6b4f63c39b9285b578f407fff74
parentd79ee00a594b9e2e056e0be589e30dccbe5457e4
W1: w1_int.c use first available master number

Follow the example of other devices (like the joystick device).  Pick the
first available id for each detected device.  Currently for USB devices,
suspending and resuming would cause the number to increment.

Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1_int.c