Driver Core: add ability for class_for_each_device to start in middle of list
This mirrors the functionality that driver_for_each_device has as well.
We add a start variable, and all callers of the function are fixed up at
the same time.
The block layer will be using this new functionality in a follow-on
patch.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
Showing
- drivers/base/class.c 13 additions, 8 deletionsdrivers/base/class.c
- drivers/i2c/i2c-core.c 4 additions, 2 deletionsdrivers/i2c/i2c-core.c
- drivers/ieee1394/nodemgr.c 9 additions, 5 deletionsdrivers/ieee1394/nodemgr.c
- drivers/power/apm_power.c 1 addition, 1 deletiondrivers/power/apm_power.c
- drivers/power/power_supply_core.c 2 additions, 2 deletionsdrivers/power/power_supply_core.c
- include/linux/device.h 2 additions, 1 deletioninclude/linux/device.h
Loading
Please register or sign in to comment