ser: cleanup to make ser_set_params() static