hwmon: (ina2xx) Use structure array to distinguish chip types
Replace per-device initialization and per-device calculation code with
per-device configuration data, which is then used to configure the chip and
perform calculations based on that data.
Also use i2c_smbus_write_read_swapped i2c_smbus_write_word_swapped to read and
write word swapped I2C data.
This patch reduces code size by more than 400 bytes on x86_64.