There are so many things wrong with your post, it's clear you haven't thought this through.
1. We are a nation of LAWS.
2. It's not the smoking, it's a potential violation of the Fourth Amendment to the United States Constitution. The police have NO RIGHT to come in to my home to write me a ticket for serving greasy fast food, popping some Vicodin or smoking a cigarette — ALL of which are equally bad for your health and those who partake. Clearly you do not have a basic grasp of what city ordinances or state statutes would comply with federal law.
3. There are other considerations with your vehicle, such as A. 99.9% of the time, a vehicle you are driving or riding in is on a public street. This is the ONLY reason the city has any authority at all to pass this law and withstand a legal challenge. B. smoking can potentially be just as distracting as talking on your cell phone since at a bare minimum, you need to handle it to ash the bud. Distracted driving can be immediately fatal.