drivers/sensor/hp206c: Clarify tick rate warning

The default tick rate is now 10 kHz, but that driver was demanding
that it be exactly 1 kHz instead of at least that rate.  I checked the
source, and the driver isn't actually extracting "ticks" from the
kernel illegally, it just needs fine-grained timers that work with the
existing millisecond API.  Let it build, this is fine.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2019-06-12 14:45:06 -07:00 committed by Anas Nashif
parent f4803bf117
commit 17051e42d6

View file

@ -74,7 +74,7 @@
struct hp206c_device_data {
struct device *i2c;
#if CONFIG_SYS_CLOCK_TICKS_PER_SEC != 1000
#if CONFIG_SYS_CLOCK_TICKS_PER_SEC < 1000
#error "driver needs millisecond tick granularity"
#endif
struct k_timer tmr;