summaryrefslogtreecommitdiff
path: root/drivers/media/rc/ene_ir.h
diff options
context:
space:
mode:
authorJarod Wilson <jarod@redhat.com>2011-01-06 22:59:36 +0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-01-19 16:45:52 +0300
commit5aad724280b9f8ffff3a55311ef0ba35ebb4099a (patch)
tree0f076e7baaf5d91cbcc6557d4c88208f83402145 /drivers/media/rc/ene_ir.h
parent9ad77eb57b45f81ac3e12077d19e5f121c4cff6d (diff)
downloadlinux-5aad724280b9f8ffff3a55311ef0ba35ebb4099a.tar.xz
[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>
Diffstat (limited to 'drivers/media/rc/ene_ir.h')
-rw-r--r--drivers/media/rc/ene_ir.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/rc/ene_ir.h b/drivers/media/rc/ene_ir.h
index c179baf34cb4..337a41d4450b 100644
--- a/drivers/media/rc/ene_ir.h
+++ b/drivers/media/rc/ene_ir.h
@@ -201,8 +201,6 @@
#define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__)
#define dbg_regs(format, ...) __dbg(3, format, ## __VA_ARGS__)
-#define MS_TO_NS(msec) ((msec) * 1000)
-
struct ene_device {
struct pnp_dev *pnp_dev;
struct rc_dev *rdev;