dm: serial: Adjust serial_getconfig() to use proper API