]> git.baikalelectronics.ru Git - kernel.git/commit
[media] gspca: ov534/topro: use a define for the default framerate
authorAntonio Ospite <ao2@ao2.it>
Wed, 9 Mar 2016 16:03:15 +0000 (13:03 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 17:56:53 +0000 (14:56 -0300)
commitc3475799e33ad718e5a4a1cc0e0023c7270a4bf2
tree46befcb0b57c46bab933fec547871c77b24fea47
parent24d34e80e669093b2502180faef64b5b235ac9d0
[media] gspca: ov534/topro: use a define for the default framerate

When writing the change in commit 02aff244d164 ("[media] gspca:
ov534/topro: prevent a division by 0") I used magic numbers for the
default framerate to minimize the code footprint to make it easier to
backport the patch to the stable trees.

However it's better if the default framerate has its own define to avoid
risking using different values in different places, and for readability.

While at it also remove some trivial comments about the framerates which
don't add much to the code anymore.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/gspca/ov534.c
drivers/media/usb/gspca/topro.c