accel: mma8451: improve device searching algorithm