PNP: adjust pnp_register_driver signature
Status from this message: Applied, thank you Bjorn.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | parport: adjust pnp_register_driver signaturedrivers/ | +11 | 0 replies | |
| 2/9 | mpu401: adjust pnp_register_driver signaturesound/ | +8 | 0 replies | |
| 3/9 | cs4236: adjust pnp_register_driver signaturesound/ | +12 | 0 replies | |
| 4/9 | opl3sa2: adjust pnp_register_driver signaturesound/ | +8 | 0 replies | |
| 5/9 | ns558: adjust pnp_register_driver signaturedrivers/ | +3 | 2 replies | |
| 6/9 | i8042: adjust pnp_register_driver signaturedrivers/ | +16 | 1 reply | |
| 7/9 | IRDA: adjust pnp_register_driver signaturedrivers/ | +1 | 0 replies | |
| 8/9 | cs4232: adjust pnp_register_driver signaturesound/ | +10 | 0 replies | |
| 9/9 | PNP: adjust pnp_register_driver signatureDocumentation/ drivers/ drivers/ | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] PNP: adjust pnp_register_driver signature
This series of patches removes the assumption that pnp_register_driver() returns the number of devices claimed. Returning the count is unreliable because devices may be hot-plugged in the future. (Many devices don't support hot-plug, of course, but PNP in general does.)
This changes the convention to "zero for success, or a negative error value," which matches pci_register_driver(), acpi_bus_register_driver(), and platform_driver_register().
If drivers need to know the number of devices, they can count calls to their .probe() methods.