Use sizeof() and ARRAY_SIZE() to have more single points of truth. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
Move the SPI and I2C bus I/O bits into their own files. This makes this driver more similar to other sensor drivers. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>