sensors-hal: M Upgrade compilation fix

- Added changes to fix the compilation issues

Change-Id: I13fb944d1ef00a88509017cf5584da66e44269ae
2 files changed