mfd: iqs62x: Provide device revision to sub-devices
authorJeff LaBundy <jeff@labundy.com>
Sun, 23 Jan 2022 19:01:05 +0000 (13:01 -0600)
committerLee Jones <lee.jones@linaro.org>
Mon, 14 Feb 2022 13:07:22 +0000 (13:07 +0000)
commit1de785a58035031f81a43c42f355fa1db510dc36
tree18f8025a6e87aad2f838da63a9eeb6e071bfd719
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
mfd: iqs62x: Provide device revision to sub-devices

Individual sub-devices may elect to make decisions based on the
specific revision of silicon encountered at probe. This data is
already read from the device, but is not retained.

Pass this data on to the sub-devices by adding the software and
hardware numbers (registers 0x01 and 0x02, respectively) to the
iqs62x_core struct.

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/iqs62x.c
include/linux/mfd/iqs62x.h