[intel-ipmi-oem]: Fix instance number path for fan

Fix the fan pwm path to be determined properly based
on the sorted map

Tested:
With R1000 chassis configuration tested the command, and able
to query the fan values as expected.
ipmitool raw 0x30 0x14 0xF 0x0 0x0 --> queries fan_1a
ipmitool raw 0x30 0x14 0xF 0x1 0x0 --> queries fan_1b
ipmitool raw 0x30 0x14 0xF 0x2 0x0 --> queries fan_2a
With R2000, fan_1, fan_2 are queried as expected.

Change-Id: Iaa8b5848cfa597b5c63c3f6edc29913bd02ad68b
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
2 files changed