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(-)

Comments

Sebastian Reichel Nov. 11, 2024, 10:13 p.m. UTC | #1
On Wed, 23 Oct 2024 13:47:58 -0500, Chris Morgan wrote:
> 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
> 
> [...]

Applied, thanks!

[1/2] power: supply: axp20x_usb_power: Use scaled iio_read_channel
      commit: 9fdd97d63fe2be2ab890240cce0a5790e0ef9877
[2/2] power: supply: axp20x_battery: Use scaled iio_read_channel
      commit: 1d3db2d99fbaa5020543bd1dc4f365faeffae4ed

Best regards,