[PATCH 5.10 233/317] params: lift param_set_uint_minmax to common code