drivers: sensor: akm09918c: fix decoder api define
Decoder api was not defined and lead to build error if it is used in userland. Fix that by adding necessary DT_DRV_COMPAT #define in akm09918c sensor decoder. Signed-off-by: Florian Weber <florian.weber@live.de>
This commit is contained in:
parent
76ff3afffe
commit
8f852551e0
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include "akm09918c.h"
|
||||
|
||||
#define DT_DRV_COMPAT asahi_kasei_akm09918c
|
||||
|
||||
static int akm09918c_decoder_get_frame_count(const uint8_t *buffer,
|
||||
struct sensor_chan_spec chan_spec,
|
||||
uint16_t *frame_count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue