summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2025-08-31 09:39:53 -0700
committerGuenter Roeck <linux@roeck-us.net>2025-09-07 16:34:59 -0700
commitd153106bd4fd63eb8d3557277a3d4ee5dbbed3b0 (patch)
tree7ea96680bcebfed6545ce36abe2e14d69a994588 /rust/helpers/helpers.c
parent807e315bf9509f4d57eca687c9732ce16c3ef843 (diff)
hwmon: (ina238) Only configure calibration and shunt registers if needed
Prepare for supporting chips with internal shunt resistor by only setting calibration and shunt resistor registers if no current LSB is configured. Do not display a log message during probe if a chip does not have shunt and gain registers since those would otherwise display 0, and a message just indicating that the driver was loaded would be just noise. Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz> # INA780 Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions