Skip to content
Commit bb0135b6 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Maureen Helm
Browse files

sensor: bq274xx: use two bytes write for settings



Use a combination of sys_cpu_to_be16 and i2c_burst_write_dt for setting
16 bits registers. Get rid of a bunch of temporary variables, custom
conversions and few bus writes.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent ec98bf7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment