mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 16:20:53 +07:00
f7c2fe386a
Add support for the Texas Instruments INA219 and INA226 power monitors. Signed-off-by: Lothar Felten <l-felten@ti.com> [guenter.roeck@ericsson.com: formatting cleanup; check for smbus word data; select PGA=8 for INA219] Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
20 lines
546 B
C
20 lines
546 B
C
/*
|
|
* Driver for Texas Instruments INA219, INA226 power monitor chips
|
|
*
|
|
* Copyright (C) 2012 Lothar Felten <l-felten@ti.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* For further information, see the Documentation/hwmon/ina2xx file.
|
|
*/
|
|
|
|
/**
|
|
* struct ina2xx_platform_data - ina2xx info
|
|
* @shunt_uohms shunt resistance in microohms
|
|
*/
|
|
struct ina2xx_platform_data {
|
|
long shunt_uohms;
|
|
};
|