driver/lsm6dsm: Fix issue while setting Magnetometer ODR
driver/lsm6dsm: Fix issue while setting Magnetometer ODR

While setting magnetometer ODR, accel ODR is restored through recursive
means. This causes the FIFO to be enabled as part of setting the accel
ODR while the magnetometer ODR is still to be configured. Fix the issue
by restoring the accel ODR in fifo_enable function instead of
recursively setting the accel ODR.

BUG=b:115587004
BRANCH=octopus
TEST=Boot to ChromeOS. Read the magnetometer samples using ectool.

Change-Id: I1c7b679b62c95277725c894242fa0e403d8cd37f
Signed-off-by: Karthikeyan Ramasubramanian <5f7313966b13e2a933e6857bda169ba157fc04ea@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1464380
Commit-Ready: Karthikeyan Ramasubramanian <5f7313966b13e2a933e6857bda169ba157fc04ea@chromium.org>
Tested-by: Karthikeyan Ramasubramanian <5f7313966b13e2a933e6857bda169ba157fc04ea@chromium.org>
Reviewed-by: Gwendal Grignou <190c5a5edfcf62e0246559bf31fa7548674de3ad@google.com>
Reviewed-by: Justin TerAvest <f2d83486a72e2fb2fbfb163be787ddf5d8d3393e@chromium.org>

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