Thanks for your query.Based on the facts that you have posted it appears that you have Fordyce spots
on shaft of your penis.
These spots are due to collection of sebum which is secreted by sebaceous glands located in penile skin.
Normally no treatment is required as they fade away after some time .Treatment is considered only if they get infected or increase in size. Do not worry and observe these spots for couple of months.