aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim/netdev.c
diff options
context:
space:
mode:
authorThomas Antoine <[email protected]>2025-05-23 12:51:44 +0000
committerSebastian Reichel <[email protected]>2025-06-22 21:27:44 +0000
commit58ae036172b5f051a19a32eba94a3e5eb37bf47e (patch)
treeea99da529320c8619f1d585ace02b8082cc26ebf /drivers/net/netdevsim/netdev.c
parentMAINTAINERS: add myself as smbx charger driver maintainer (diff)
downloadkernel-58ae036172b5f051a19a32eba94a3e5eb37bf47e.tar.gz
kernel-58ae036172b5f051a19a32eba94a3e5eb37bf47e.zip
power: supply: max1720x correct capacity computation
From the datasheet of the MAX17201/17205, the LSB should be "5.0μVh/RSENSE". The current computation sets it at 0.5mAh=5.0μVh/10mOhm, which does not take into account the value of rsense (which is in 10µV steps) which can be different from 10mOhm. Change the computation to fit the specs. Fixes: 479b6d04964b ("power: supply: add support for MAX1720x standalone fuel gauge") Signed-off-by: Thomas Antoine <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/net/netdevsim/netdev.c')
0 files changed, 0 insertions, 0 deletions