[media] gspca/sn9c20x: Get rid of scale "magic" numbers
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Dec 2010 17:47:10 +0000 (14:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:59 +0000 (08:16 -0200)
commit86701c1d6a3ecae2f0e6771c730364d334d5a142
tree40bec2f3b972df989937d9424ac1e65d9f3b7552
parente78567d227ecd40543508342ba39a3dfba5af14f
[media] gspca/sn9c20x: Get rid of scale "magic" numbers

Use macros for the supported scales, instead of using magic numbers
from 0 to 3.

Code become cleaner by using macros for it.

Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sn9c20x.c