OSDN Git Service

hwmon: (ibmpowernv) introduce a legacy_compatibles array
authorCédric Le Goater <clg@kaod.org>
Tue, 20 Jun 2017 05:08:12 +0000 (10:38 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Jun 2017 20:51:45 +0000 (13:51 -0700)
commit3ab521601dc0273b553d203f6bd1d02319a011b9
tree44fee8f8bbf9ff6b4e1a7b024604d91d55e9e9f9
parent677252a185a9cf609d650364817d87279ce51df0
hwmon: (ibmpowernv) introduce a legacy_compatibles array

Today, the type of a PowerNV sensor system is determined with the
"compatible" property for legacy Firmwares and with the "sensor-type"
for newer ones. The same array of strings is used for both to do the
matching and this raises some issue to introduce new sensor types.

Let's introduce two different arrays (legacy and current) to make
things easier for new sensor types.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ibmpowernv.c