srd: maxim_ds28ea00: Factor out putx(), small fixes.