/* The LTC2312 returns a 16-bit data, but only the 12 or 14 most significant bytes are actual data, depending on the part. The rest of the bits are 0, so the data must be shifted to the right by 2 for LTC2312-14 and by 4 for LTC2312-12. */
static uint8_t ltc2312_get_shift(struct ltc2312_dev *dev)
/* The LTC2312 returns a 16-bit data, but only the 12 or 14 most significant bytes are actual data, depending on the part. The rest of the bits are 0, so the data must be shifted to the right by 2 for LTC2312-14 and by 4 for LTC2312-12. */
static uint8_t ltc2312_get_shift(struct ltc2312_dev *dev)
{
	switch(dev->type) {
	case LTC2312_12:
		return 4;
		break;
	case LTC2312_14:
		return 2;
		break;
	default:
		return 4;
	}
}