fsi: occ: Support probing the hwmon child device from dts node
authorEddie James <eajames@linux.ibm.com>
Tue, 9 Aug 2022 20:07:00 +0000 (15:07 -0500)
committerJoel Stanley <joel@jms.id.au>
Wed, 28 Sep 2022 11:40:57 +0000 (21:10 +0930)
commit0fead4fc926f000d2daee938f0d4886ac8da11d0
tree9d760c01321be542bd764f762476b2ccd4b0c8dd
parent8d4c99002d2f38edd50a9896a29a1650be3de1af
fsi: occ: Support probing the hwmon child device from dts node

There is now a need for reading devicetree properties in the OCC
hwmon driver, which isn't current supported as the FSI driver just
instantiates a basic platform device. Add support for this use case
by checking for an "occ-hwmon" node and if present, creating an
OF device from it.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220809200701.218059-3-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-occ.c