Commit dba83476 authored by Daniel Perez's avatar Daniel Perez Committed by Sebastian Reichel

power: supply: sbs-charger: simplified bool function

Signed-off-by: default avatarDaniel Perez <danielperezdeandres@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent d7147246
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment