Ed Schouten 6bfa9a2d66 Replace all calls to minor() with dev2unit().
After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by:	kib
2008-09-27 08:51:18 +00:00
..
2008-09-12 18:15:12 +00:00
2008-08-14 02:43:18 +00:00
2008-01-18 16:34:18 +00:00
2008-09-21 23:16:19 +00:00
2008-08-27 18:47:24 +00:00
2008-09-25 06:46:28 +00:00
2008-08-28 22:28:28 +00:00
2008-07-11 18:26:12 +00:00
2008-09-22 10:37:02 +00:00
2008-09-07 04:35:04 +00:00
2008-08-08 13:43:56 +00:00
2008-05-12 00:15:30 +00:00
2008-05-12 00:15:30 +00:00
2008-04-10 01:25:09 +00:00
2008-01-21 09:51:28 +00:00
2008-06-17 05:48:42 +00:00
2008-04-26 14:13:48 +00:00
2008-08-26 10:41:49 +00:00
2007-12-05 19:32:59 +00:00
2008-08-25 05:20:17 +00:00
2008-08-27 05:39:44 +00:00