Driver: use range based for loop

Use a couple more range based for loops.  NFC.