I have small, white wart-like growths all around the rim of my glans penis. They are arranged in rows. The spots you refer to most likely are pearly penile papules. They tend to concentrate around the head of the penis and can be widespread. They are not warts and they are not infectious.
Papules are benign and normal for some men.
They can be removed by surgical shaving but they tend to recur. They will not cause a yeast infection. Your partner should discuss the recurrent yeast infections with her gynecologist. They can be stubborn to cure. I just read a question on your Web site about pearly penile papules.