int ret;
info->edpc = NULL;
- if (!edpc->num_states)
+ if (!edpc->num_states) {
+ dev_warn(&info->i2c_client->dev,
+ "%s: NO edp states defined.\n", __func__);
return;
+ }
strncpy(edpc->name, "imx091", EDP_NAME_LEN - 1);
edpc->name[EDP_NAME_LEN - 1] = 0;
/* the state num is temporary assigned, should be updated later as
per-mode basis */
- err = imx091_edp_req(info, info->edpc->e0_index);
+ err = imx091_edp_req(info, 0);
if (err) {
dev_err(&info->i2c_client->dev,
"%s: ERROR cannot set edp state! %d\n", __func__, err);
int ret;
info->edpc = NULL;
- if (!edpc->num_states)
+ if (!edpc->num_states) {
+ dev_warn(info->dev, "%s: NO edp states defined.\n", __func__);
return;
+ }
+
strncpy(edpc->name, "max77665f", EDP_NAME_LEN - 1);
edpc->name[EDP_NAME_LEN - 1] = 0;
edpc->throttle = max77665_f_throttle;