[PATCH 4/4] power: max17042_battery: Export charge termination current property

2020-11-24 Thread Sebastian Krzyszkowiak
The value is there, so let's export it. Signed-off-by: Sebastian Krzyszkowiak --- drivers/power/supply/max17042_battery.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c index 26f6f89eb648

[PATCH 3/4] power: max17042_battery: Take r_sns value into account in charge_counter

2020-11-24 Thread Sebastian Krzyszkowiak
The default r_sns value was hardcoded there, so let's change it to the actually configured one. Signed-off-by: Sebastian Krzyszkowiak --- drivers/power/supply/max17042_battery.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/max17042_battery.c b

[PATCH 2/4] power: max17042_battery: Improve accuracy of current_now and current_avg readings

2020-11-24 Thread Sebastian Krzyszkowiak
Dividing 1562500 by r_sns value usually doesn't result in an integer. Signed-off-by: Sebastian Krzyszkowiak --- drivers/power/supply/max17042_battery.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply

[PATCH 1/4] power: max17042_battery: Fix current_{avg,now} hiding with no current sense

2020-11-24 Thread Sebastian Krzyszkowiak
When current sense is disabled, max17042_no_current_sense_psy_desc gets used which ignores two last properties from the list. Fixes: 21b01cc879cc ("power: supply: max17042_battery: Add support for the TTE_NOW prop") Signed-off-by: Sebastian Krzyszkowiak --- drivers/po

[PATCH] power: bq25890: Use the correct range for IILIM register

2020-11-24 Thread Sebastian Krzyszkowiak
I've checked bq25890, bq25892, bq25895 and bq25896 datasheets and they all define IILIM to be between 100mA-3.25A with 50mA steps. Fixes: 478efc79ee32 ("power: bq25890: implement INPUT_CURRENT_LIMIT property") Signed-off-by: Sebastian Krzyszkowiak --- drivers/power/supply/bq25890_cha

[PATCH] ASoC: wm8962: Export DAC/ADC monomix switches

2020-08-15 Thread Sebastian Krzyszkowiak
This allows solutions like ALSA UCM to utilize hardware mono downmix for cases where mono output to a single speaker is desired only in specific situations (like on a mobile phone). Signed-off-by: Sebastian Krzyszkowiak --- sound/soc/codecs/wm8962.c | 2 ++ 1 file changed, 2 insertions(+) diff