Commit c3e40952 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij
Browse files

pinctrl: cy8c95x0: Use 'default' in all switch-cases

parent 1fa3df90
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -279,10 +279,10 @@ static bool cy8c95x0_readable_register(struct device *dev, unsigned int reg)
	switch (reg) {
	case 0x24 ... 0x27:
		return false;
	}

	default:
		return true;
	}
}

static bool cy8c95x0_writeable_register(struct device *dev, unsigned int reg)
{
@@ -293,10 +293,10 @@ static bool cy8c95x0_writeable_register(struct device *dev, unsigned int reg)
		return false;
	case 0x24 ... 0x27:
		return false;
	}

	default:
		return true;
	}
}

static bool cy8c95x0_volatile_register(struct device *dev, unsigned int reg)
{
@@ -325,10 +325,10 @@ static bool cy8c95x0_precious_register(struct device *dev, unsigned int reg)
	switch (reg) {
	case CY8C95X0_INTSTATUS_(0) ... CY8C95X0_INTSTATUS_(7):
		return true;
	}

	default:
		return false;
	}
}

static const struct reg_default cy8c95x0_reg_defaults[] = {
	{ CY8C95X0_OUTPUT_(0), 0xff },
@@ -1255,6 +1255,8 @@ static int cy8c95x0_probe(struct i2c_client *client)
	case 60:
		strscpy(chip->name, cy8c95x0_id[2].name, I2C_NAME_SIZE);
		break;
	default:
		return -ENODEV;
	}

	reg = devm_regulator_get(&client->dev, "vdd");