Add factor and offset for fan monitor

For fans controlled via pwm, the fan target and speed are different,
where the fan target is pwm and the speed is rpm.

Usually it is a linear mapping from pwm to rpm.
So this commit defines the optional configs, factor and offset for
calculating the expected fan speed from target, e.g.

  - name: fan0
    has_target: true
    factor: 21
    offset: 1600

The fan monitor service will calculate expected fan speed as:
 target * factor + offset

The default value is 1 for factor and 0 for offset if they are not
defined.

Tested: Use this config together with the following commit's changes,
        test on Romulus and ensures the fan monitor works OK;
        Without this config, fan monitor always mark fans as
        non-functional due to the fan speed does not match the pwm
        value.

Change-Id: If5e25368b4530df7a7face9377efb58804db21df
Signed-off-by: Lei YU <mine260309@gmail.com>
diff --git a/monitor/example/monitor.yaml b/monitor/example/monitor.yaml
index 67feaab..1692800 100644
--- a/monitor/example/monitor.yaml
+++ b/monitor/example/monitor.yaml
@@ -19,6 +19,12 @@
 #    - name [The name of the fan sensor]
 #      has_target [true|false  If this sensor has a Target property for
 #                  setting a fan speed (otherwise just for reads)]
+#      factor [The factor to multiply with target to calculate the expected
+#              fan speed. Default is 1 for fan speed target;
+#              Customized value for pwm target]
+#      offset [The offset to add to calculate the expected fan speed.
+#              Default is 0 for fan speed target;
+#              Customized value for pwm target]
 #
 #sensor_trust_groups:
 # - class: [Group class name