muic: muic_afc: Return proper value after setting afc_disable
...otherwise android::base::WriteStringToFile() will keep retrying indefinitely in case kernel can't write to the param partition. Change-Id: Iec9d2a317182f484307759ce9f196d85848c10bf
This commit is contained in:
@@ -779,7 +779,7 @@ static ssize_t afc_off_store(struct device *dev,
|
||||
if (!ret) {
|
||||
pr_err("%s: set_param failed - %02x:(%d)\n",
|
||||
__func__, param_val, ret);
|
||||
return ret;
|
||||
return size;
|
||||
} else {
|
||||
pr_info("%s:%s afc_disable:%d (AFC %s)\n", MUIC_DEV_NAME,
|
||||
__func__, pdata->afc_disable, pdata->afc_disable ? "Diabled": "Enabled");
|
||||
|
||||
Reference in New Issue
Block a user