summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@linaro.org>2025-04-09 21:37:33 +0100
committerLee Jones <lee@kernel.org>2025-05-23 08:48:37 +0100
commitada2b490c72bf6521aab135ba6e866639f9b0220 (patch)
tree974e8243667cf9fa7109c9305c9af54e5ad1657c
parentd58b81c436f00259019ad11f2a9af19d84496de3 (diff)
mfd: sec-i2c: Sort struct of_device_id entries and the device type switch
Sort struct of_device_id entries and the device type switch in _probe() alphabetically, which makes it easier to find the right place where to insert new entries in the future. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: André Draszik <andre.draszik@linaro.org> Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-12-d66d5f39b6bf@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
-rw-r--r--drivers/mfd/sec-i2c.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mfd/sec-i2c.c b/drivers/mfd/sec-i2c.c
index 8e3a365ff3e5..966d116dd781 100644
--- a/drivers/mfd/sec-i2c.c
+++ b/drivers/mfd/sec-i2c.c
@@ -154,12 +154,12 @@ static int sec_pmic_i2c_probe(struct i2c_client *client)
case S2MPS15X:
regmap = &s2mps15_regmap_config;
break;
- case S5M8767X:
- regmap = &s5m8767_regmap_config;
- break;
case S2MPU02:
regmap = &s2mpu02_regmap_config;
break;
+ case S5M8767X:
+ regmap = &s5m8767_regmap_config;
+ break;
default:
regmap = &sec_regmap_config;
break;
@@ -184,12 +184,12 @@ static void sec_pmic_i2c_shutdown(struct i2c_client *i2c)
static const struct of_device_id sec_pmic_i2c_of_match[] = {
{
- .compatible = "samsung,s5m8767-pmic",
- .data = (void *)S5M8767X,
- }, {
.compatible = "samsung,s2dos05",
.data = (void *)S2DOS05,
}, {
+ .compatible = "samsung,s2mpa01-pmic",
+ .data = (void *)S2MPA01,
+ }, {
.compatible = "samsung,s2mps11-pmic",
.data = (void *)S2MPS11X,
}, {
@@ -202,14 +202,14 @@ static const struct of_device_id sec_pmic_i2c_of_match[] = {
.compatible = "samsung,s2mps15-pmic",
.data = (void *)S2MPS15X,
}, {
- .compatible = "samsung,s2mpa01-pmic",
- .data = (void *)S2MPA01,
- }, {
.compatible = "samsung,s2mpu02-pmic",
.data = (void *)S2MPU02,
}, {
.compatible = "samsung,s2mpu05-pmic",
.data = (void *)S2MPU05,
+ }, {
+ .compatible = "samsung,s5m8767-pmic",
+ .data = (void *)S5M8767X,
},
{ },
};