/* Read BMA220 device ID and revision numbers. 
This function reads the accelerometer hardware identification registers and returns these values in the specified data structure. */
static bool bma220_device_id(sensor_hal_t *hal, sensor_data_t *data)
/* Read BMA220 device ID and revision numbers. 
This function reads the accelerometer hardware identification registers and returns these values in the specified data structure. */
static bool bma220_device_id(sensor_hal_t *hal, sensor_data_t *data)
{
	data->device.id = sensor_bus_get(hal, REG_ADDR(BMA220_CHIP_ID));
	data->device.version
		= sensor_bus_get(hal, REG_ADDR(BMA220_CHIP_VERSION));
	return true;
}