提交 dba83476 编写于 作者: D Daniel Perez 提交者: Sebastian Reichel

power: supply: sbs-charger: simplified bool function

Signed-off-by: NDaniel Perez <danielperezdeandres@gmail.com>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册