diff options
author | Hyungwoo Yang <hyungwooy@nvidia.com> | 2013-04-27 14:39:16 -0700 |
---|---|---|
committer | Harshada Kale <hkale@nvidia.com> | 2013-05-03 00:52:21 -0700 |
commit | 8de438d1bbd3516a067836a7697aead1ef20cdc2 (patch) | |
tree | 5fb67d08ed17e1105773bc7ebb751557d5beb9bf /include | |
parent | 6d0cbb08d9283637559108ec88d99914bebcc3b5 (diff) |
hwmon: ina230: support inverted polarity for shunt voltage
This change supports the case for polarity of shunt voltage is inverted.
Bug 1240043
Change-Id: Idfb87fd80694b61f1ec66be9aa815d7aedc95324
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/223682
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/ina230.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/platform_data/ina230.h b/include/linux/platform_data/ina230.h index 8fb86bdf4473..b5d4f8fa9ec8 100644 --- a/include/linux/platform_data/ina230.h +++ b/include/linux/platform_data/ina230.h @@ -1,7 +1,7 @@ /* * include/linux/platform_data/ina230.h * - * Copyright (c) 2011, NVIDIA Corporation. + * Copyright (c) 2009-2013, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,6 +34,7 @@ struct ina230_platform_data { u16 divisor; u32 shunt_resistor; u32 precision_multiplier; + int shunt_polarity_inverted; /* 0: not invert, 1: inverted */ }; #endif /* _INA230_H */ |