OSDN Git Service

staging: media: lirc: Delete unused function tv2int
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Mon, 20 Oct 2014 11:28:10 +0000 (16:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2014 04:48:31 +0000 (12:48 +0800)
commit2c1bfc3be0fc525d95ff5983bf8ea3f2aff24d1b
treea065a840802f3f175001e74e285a75ca8badf338
parent17fbab1ee9a3e5d2a070450a0c76a3434278bc96
staging: media: lirc: Delete unused function tv2int

The function tv2int is used to convert timeval to int.

32-bit systems using 'struct timeval' will break in the year 2038,
so we have to replace that code with more appropriate types.
This patch changes the lirc_imon.c file of media: lirc driver.

tv2int function is static and not used anywhere in this file too,
so it is removed. I also build tested it.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/lirc/lirc_imon.c