]> git.karo-electronics.de Git - mv-sheeva.git/commit
[media] rc: fix up and genericize some time unit conversions
authorJarod Wilson <jarod@redhat.com>
Thu, 6 Jan 2011 19:59:36 +0000 (16:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:52 +0000 (11:45 -0200)
commit5aad724280b9f8ffff3a55311ef0ba35ebb4099a
tree0f076e7baaf5d91cbcc6557d4c88208f83402145
parent9ad77eb57b45f81ac3e12077d19e5f121c4cff6d
[media] rc: fix up and genericize some time unit conversions

The ene_ir driver was using a private define of MS_TO_NS, which is meant
to be microseconds to nanoseconds. The mceusb driver copied it,
intending to use is a milliseconds to microseconds. Lets move the
defines to a common location, expand and standardize them a touch, so
that we now have:

  MS_TO_NS - milliseconds to nanoseconds
  MS_TO_US - milliseconds to microseconds
  US_TO_NS - microseconds to nanoseconds

Reported-by: David Härdeman <david@hardeman.nu>
CC: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ene_ir.c
drivers/media/rc/ene_ir.h
drivers/media/rc/mceusb.c
include/media/rc-core.h