|
@@ -577,10 +577,11 @@ static void pmic_mpp_config_dbg_show(struct pinctrl_dev *pctldev,
|
|
|
|
|
|
if (pad->input_enabled) {
|
|
if (pad->input_enabled) {
|
|
ret = pmic_mpp_read(state, pad, PMIC_MPP_REG_RT_STS);
|
|
ret = pmic_mpp_read(state, pad, PMIC_MPP_REG_RT_STS);
|
|
- if (!ret) {
|
|
|
|
- ret &= PMIC_MPP_REG_RT_STS_VAL_MASK;
|
|
|
|
- pad->out_value = ret;
|
|
|
|
- }
|
|
|
|
|
|
+ if (ret < 0)
|
|
|
|
+ return;
|
|
|
|
+
|
|
|
|
+ ret &= PMIC_MPP_REG_RT_STS_VAL_MASK;
|
|
|
|
+ pad->out_value = ret;
|
|
}
|
|
}
|
|
|
|
|
|
seq_printf(s, " %-4s", pad->output_enabled ? "out" : "in");
|
|
seq_printf(s, " %-4s", pad->output_enabled ? "out" : "in");
|