drivers: misc: fix compile of accelerometer driver

Change-Id: I1fad4c773c6fff122b94f83d30a56b3fe5c6942e