driver: fix up more types

This fixes up the types used in val_to_ring()