zephyr: lis2dw12: Test set_data_rate()
zephyr: lis2dw12: Test set_data_rate()

Unit test for the LIS2DW12 set_data_rate function. Covers turning the
device off by setting a rate of 0, and exercises the rounding and
clamping functionality.

BRANCH=None
BUG=b:200046770
TEST=zmake -D configure --test test-drivers; make runhosttests

Signed-off-by: Tristan Honscheid <1e17951ff5ffc8afe254954c03de64afef62fe52@google.com>
Change-Id: I1ba28a7b192b4921593085b922269adc172ba6ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3311183
Reviewed-by: Jack Rosenthal <d3f605bef1867f59845d4ce6e4f83b8dc9e4e0ae@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec