/* The AB3100 is usually assigned address 0x48 (7-bit) The chip is defined in the platform i2c_board_data section.  */
u8 ab3100_get_chip_type(struct ab3100 *ab3100)
/* The AB3100 is usually assigned address 0x48 (7-bit) The chip is defined in the platform i2c_board_data section.  */
u8 ab3100_get_chip_type(struct ab3100 *ab3100)
{
	u8 chip = ABUNKNOWN;
	switch (ab3100->chip_id & 0xf0) {
	case  0xa0:
		chip = AB3000;
		break;
	case  0xc0:
		chip = AB3100;
		break;
	}
	return chip;
}