]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: sh_mobile: use adapter default for timeout
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 20 Jun 2015 19:03:21 +0000 (21:03 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 23 Jun 2015 17:50:24 +0000 (19:50 +0200)
commit41bdbd2887591a3fa586e71cd2b462c3525845a3
tree6c75f6953d9ec12fa87d6e47849e5ff555020cbd
parentb6763d0da5c16ea8770252c36ba2afca76aaedbd
i2c: sh_mobile: use adapter default for timeout

5 seconds is a very large timeout, and it is hardcoded. Use the default
timeout from 'struct adapter' which is 1 second. It can also be modified
from userspace for specific workloads via i2c-dev.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c