On Sat, Mar 28, 2020 at 1:29 PM saravanan sekar <sravanhome@xxxxxxxxx> wrote:ok, I will remove outer ().
On 28/03/20 12:02 pm, Andy Shevchenko wrote:...
On Sat, Mar 28, 2020 at 2:12 AM Saravanan Sekar <sravanhome@xxxxxxxxx> wrote:
(At least) surrounding pair is not needed, return (a == b) || (c == d);I think I misunderstood you previous review comment "Redundant+ val->intval = (rval * props[fld].step) + props[fld].min;Too many parentheses.
...
+ return ((psp == POWER_SUPPLY_PROP_PRECHARGE_CURRENT) ||Ditto.
+ (psp == POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT) ||
+ (psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT) ||
+ (psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE));
parentheses", no sure what is the expectation
Please see the 0-day warning.......
+ return ((psp == POWER_SUPPLY_PROP_INPUT_VOLTAGE_LIMIT) ||Ditto.
+ (psp == POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT));
Hmm... Can you share warning / error compiler issued in 0 case?NULL to make compiler happy.+ struct power_supply_config psy_cfg = {NULL};{ 0 }