Misc patches

Hello Olof,

these are some unrelated minor changes unrelated to i2c and spi.

Best Regards,
Hans