Re: [PATCH 4/7] power: supply: bq27xxx: use BIT() for bit flags

2020-09-08 Thread Krzysztof Kozlowski
On Tue, 8 Sep 2020 at 22:53, Dan Murphy wrote: > > Krzysztof > > On 9/8/20 3:13 PM, Krzysztof Kozlowski wrote: > > BIT() is a preferred way to toggle bit-like flags: no problems with 32/64 > > bit systems, less chances for mistakes. > > > > Signed-off-by: Krzysztof Kozlowski > > --- > > drivers

Re: [PATCH 4/7] power: supply: bq27xxx: use BIT() for bit flags

2020-09-08 Thread Dan Murphy
Krzysztof On 9/8/20 3:13 PM, Krzysztof Kozlowski wrote: BIT() is a preferred way to toggle bit-like flags: no problems with 32/64 bit systems, less chances for mistakes. Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/bq27xxx_battery.c | 15 --- 1 file changed, 8 ins

[PATCH 4/7] power: supply: bq27xxx: use BIT() for bit flags

2020-09-08 Thread Krzysztof Kozlowski
BIT() is a preferred way to toggle bit-like flags: no problems with 32/64 bit systems, less chances for mistakes. Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/bq27xxx_battery.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/power/supply