diff options
| author | Deepak Nibade <dnibade@nvidia.com> | 2012-09-26 17:44:06 +0530 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 00:48:57 -0700 |
| commit | ebe6296565fdc1782958a56ce37a27847e39ab6a (patch) | |
| tree | bdf6cd28d215ad1f1f81afaa9ac32465406f807b | |
| parent | c6d0bcf172a2c79d0f779015c2e928cf2ac55144 (diff) | |
hwmon: ina219: increase rail_name size to store larger names
-define INA219_RAIL_NAME_SIZE for this
bug 1049224
Reviewed-on: http://git-master/r/138950
(cherry picked from commit 78bb4f3866bf9f04a965297f236a6fbf54e6af16)
Change-Id: Id81ab44b268daf69a8604f8442a45c94c3e9183d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/145589
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: Rc0afc424868ca25386a44d091a3dde2f7300d98a
| -rw-r--r-- | include/linux/ina219.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/ina219.h b/include/linux/ina219.h index c27fa26c5759..cc63452f537a 100644 --- a/include/linux/ina219.h +++ b/include/linux/ina219.h @@ -1,7 +1,7 @@ /* * linux/include/linux/ina219.h * - * Copyright (c) 2011, NVIDIA Corporation. + * Copyright (c) 2011-2012, 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 @@ -23,11 +23,13 @@ #include <linux/types.h> +#define INA219_RAIL_NAME_SIZE 32 + struct ina219_platform_data { u8 divisor; /*divisor needed to get current value */ u32 calibration_data; u32 power_lsb; - char rail_name[20]; + char rail_name[INA219_RAIL_NAME_SIZE]; }; #endif /* _LINUX_INA219_H */ |
