switch (reg) {
case 0x24 ... 0x27:
return false;
+ default:
+ return true;
}
-
- return true;
}
static bool cy8c95x0_writeable_register(struct device *dev, unsigned int reg)
return false;
case 0x24 ... 0x27:
return false;
+ default:
+ return true;
}
-
- return true;
}
static bool cy8c95x0_volatile_register(struct device *dev, unsigned int reg)
switch (reg) {
case CY8C95X0_INTSTATUS_(0) ... CY8C95X0_INTSTATUS_(7):
return true;
+ default:
+ return false;
}
-
- return false;
}
static const struct reg_default cy8c95x0_reg_defaults[] = {
case 60:
strscpy(chip->name, cy8c95x0_id[2].name, I2C_NAME_SIZE);
break;
+ default:
+ return -ENODEV;
}
reg = devm_regulator_get(&client->dev, "vdd");