mbox series

[0/2] Change axp20x power drivers to use iio scaled

Message ID 20241023184800.109376-1-macroalpha82@gmail.com
Headers show
Series Change axp20x power drivers to use iio scaled | expand

Message

Chris Morgan Oct. 23, 2024, 6:47 p.m. UTC
From: Chris Morgan <macromorgan@hotmail.com>

Simplify the axp20x_battery and axp20x_usb_power to use
iio_read_channel_processed_scale() instead of reading the channel and
then applying the scaling factor in an additional step.

Chris Morgan (2):
  power: supply: axp20x_usb_power: Use scaled iio_read_channel
  power: supply: axp20x_battery: Use scaled iio_read_channel

 drivers/power/supply/axp20x_battery.c   | 33 +++++++++++++------------
 drivers/power/supply/axp20x_usb_power.c | 33 +++++++++++--------------
 2 files changed, 32 insertions(+), 34 deletions(-)