Skip to content

Commit

Permalink
power: supply: sbs-charger: simplified bool function
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Perez <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
  • Loading branch information
dperezde authored and sre committed Apr 13, 2017
1 parent d714724 commit dba8347
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/power/supply/sbs-charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ static enum power_supply_property sbs_properties[] = {

static bool sbs_readable_reg(struct device *dev, unsigned int reg)
{
if (reg < SBS_CHARGER_REG_SPEC_INFO)
return false;
else
return true;
return reg >= SBS_CHARGER_REG_SPEC_INFO;
}

static bool sbs_volatile_reg(struct device *dev, unsigned int reg)
Expand Down

0 comments on commit dba8347

Please sign in to comment.