From 17051e42d6c41ecb735dd93df8bcf60644c1bf49 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Wed, 12 Jun 2019 14:45:06 -0700 Subject: [PATCH] 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 --- drivers/sensor/hp206c/hp206c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sensor/hp206c/hp206c.h b/drivers/sensor/hp206c/hp206c.h index 9d7c1259df..76502bee0e 100644 --- a/drivers/sensor/hp206c/hp206c.h +++ b/drivers/sensor/hp206c/hp206c.h @@ -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;