staging: most: i2c: prevent zero delay polling
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:44:58 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:49 +0000 (13:41 +0200)
commitea8bcd5282d9dc683d7a544c42bcc057c168d315
treef0d34154167f0f3d21ec2283c4b2813b897a1d54
parentcd2e7148e77d45cad32b8cb18bc55bfa66491181
staging: most: i2c: prevent zero delay polling

This patch avoids that a configured scan_rate of more than MSEC_PER_SEC
might result in a polling delay of zero.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/i2c/i2c.c