Skip to content
Permalink
Browse files

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>
  • Loading branch information...
andyross authored and nashif committed Jun 12, 2019
1 parent f4803bf commit 17051e42d6c41ecb735dd93df8bcf60644c1bf49
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 17051e4

Please sign in to comment.
You can’t perform that action at this time.