hwmon: ina219: Update INA219 platform data
Anshul Jain [Wed, 31 Oct 2012 18:33:39 +0000 (11:33 -0700)]
platform data structure now contains:
shunt resistor value
trigger config data
continuous config data

Bug 1160868

Change-Id: I5a4102745db2304fd7c5735981e1f70d182f32f6
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/160065
Tested-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

include/linux/ina219.h

index 422d726..de41137 100644 (file)
 #define INA219_RAIL_NAME_SIZE  32
 
 struct ina219_platform_data {
-       u8 divisor; /*divisor needed to get current value */
+       u16 divisor; /*divisor needed to get current value */
        u32 calibration_data;
        u32 power_lsb;
        u32 precision_multiplier;
+       u16 trig_conf;
+       u16 cont_conf;
+       u32 shunt_resistor; /*mOhms*/
        char rail_name[INA219_RAIL_NAME_SIZE];
 };