Re: [PATCH v3 3/4] hwmon: (ina238) Add ina238_config fields
From: Guenter Roeck
Date: Fri Aug 29 2025 - 12:00:40 EST
On 8/28/25 20:05, Chris Packham wrote:
In preparation for adding INA780 support add some required fields to
ina238_config and set the appropriate values for the existing chips.
Signed-off-by: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>
---
Notes:
Changes in v3:
- New. Split config struct changes from main patch
We should have fields for curent_lsb, power_lsb, and energy_lsb in both
struct ina238_config and struct ina238_data, and pre-calculate the values
for chips where it is dynamic. I started writing that code, but while
writing unit test code I found that the driver has more problems similar
to the one you fixed with an earlier patch of this series. We'll have to
address that first. I hope I can find and fix those issues over the weekend.
Guenter