fmradio: set timeout 10 seconds instead of 500 jiffies in FM char driver read and...
authorFrode Isaksen <frodex.isaksen@intel.com>
Thu, 24 May 2012 16:16:55 +0000 (18:16 +0200)
committerbuildbot <buildbot@intel.com>
Tue, 5 Jun 2012 17:29:35 +0000 (10:29 -0700)
commit2c7765565402a475c9c23b1e99ec68604d78e92e
treed8a9796e5e1b4166bc407c9c029179733cb375ba
parentfc62bccbfb6556081104960c366cf407f61ec727
fmradio: set timeout 10 seconds instead of 500 jiffies in FM char driver read and remove a printk on timeout

BZ: 33530

Set timeout as a multiple of HZ instead of jiffies in the FM char driver read function,
since jiffies may change with the kernel.
The timeout is set to 10 seconds as is done in the GPS char driver.
Also, do not log an error on read timeout, since it is not an error.

Change-Id: Ied50adfa56f1812d27caa671e11f8bdf08c2166e
Signed-off-by: Frode Isaksen <frodex.isaksen@intel.com>
Reviewed-on: http://android.intel.com:8080/51235
Reviewed-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: Peix, Fabien <fabien.peix@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/radio/wl128x/fmdrv_chr.c