iio: temperature: iqs620at-temp: Add support for V3 silicon
authorJeff LaBundy <jeff@labundy.com>
Sun, 23 Jan 2022 19:01:06 +0000 (13:01 -0600)
committerLee Jones <lee.jones@linaro.org>
Mon, 14 Feb 2022 13:07:33 +0000 (13:07 +0000)
commit9e444dbf278c604110762b25d8e0b4e9f1d27dbc
tree651b72d34370622073472fd588304d633722c1dd
parent1de785a58035031f81a43c42f355fa1db510dc36
iio: temperature: iqs620at-temp: Add support for V3 silicon

The vendor introduced an updated revision of IQS620A(T) silicon
which is backwards-compatible with previous revisions, the only
exception being the offset used to derive temperature.

Enable this new revision by returning the appropriate offset as
a function of the hardware number provided by the parent MFD.

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/iio/temperature/iqs620at-temp.c