Skip to content

Commit 60a90b3

Browse files
Gene ChenLee Jones
authored andcommitted
mfd: mt6360: Rename mt6360_pmu by mt6360
Rename mt6360_pmu by mt6360, because of including not only PMU part, but also entire MT6360 IC Signed-off-by: Gene Chen <gene_chen@richtek.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent e63ce9a commit 60a90b3

1 file changed

Lines changed: 20 additions & 21 deletions

File tree

‎drivers/mfd/mt6360-core.c‎

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
#define MT6360_LDO6_PGB_EVT 126
121121
#define MT6360_LDO7_PGB_EVT 127
122122

123-
static const struct regmap_irq mt6360_pmu_irqs[] = {
123+
static const struct regmap_irq mt6360_irqs[] = {
124124
REGMAP_IRQ_REG_LINE(MT6360_CHG_TREG_EVT, 8),
125125
REGMAP_IRQ_REG_LINE(MT6360_CHG_AICR_EVT, 8),
126126
REGMAP_IRQ_REG_LINE(MT6360_CHG_MIVR_EVT, 8),
@@ -217,9 +217,9 @@ static int mt6360_pmu_handle_post_irq(void *irq_drv_data)
217217
MT6360_PMU_IRQ_SET, MT6360_IRQ_RETRIG, MT6360_IRQ_RETRIG);
218218
}
219219

220-
static struct regmap_irq_chip mt6360_pmu_irq_chip = {
221-
.irqs = mt6360_pmu_irqs,
222-
.num_irqs = ARRAY_SIZE(mt6360_pmu_irqs),
220+
static struct regmap_irq_chip mt6360_irq_chip = {
221+
.irqs = mt6360_irqs,
222+
.num_irqs = ARRAY_SIZE(mt6360_irqs),
223223
.num_regs = MT6360_PMU_IRQ_REGNUM,
224224
.mask_base = MT6360_PMU_CHG_MASK1,
225225
.status_base = MT6360_PMU_CHG_IRQ1,
@@ -308,7 +308,7 @@ static const unsigned short mt6360_slave_addr[MT6360_SLAVE_MAX] = {
308308
MT6360_TCPC_SLAVEID,
309309
};
310310

311-
static int mt6360_pmu_probe(struct i2c_client *client)
311+
static int mt6360_probe(struct i2c_client *client)
312312
{
313313
struct mt6360_ddata *ddata;
314314
unsigned int reg_data;
@@ -339,10 +339,10 @@ static int mt6360_pmu_probe(struct i2c_client *client)
339339
return -ENODEV;
340340
}
341341

342-
mt6360_pmu_irq_chip.irq_drv_data = ddata;
342+
mt6360_irq_chip.irq_drv_data = ddata;
343343
ret = devm_regmap_add_irq_chip(&client->dev, ddata->regmap, client->irq,
344344
IRQF_TRIGGER_FALLING, 0,
345-
&mt6360_pmu_irq_chip, &ddata->irq_data);
345+
&mt6360_irq_chip, &ddata->irq_data);
346346
if (ret) {
347347
dev_err(&client->dev, "Failed to add Regmap IRQ Chip\n");
348348
return ret;
@@ -374,7 +374,7 @@ static int mt6360_pmu_probe(struct i2c_client *client)
374374
return 0;
375375
}
376376

377-
static int __maybe_unused mt6360_pmu_suspend(struct device *dev)
377+
static int __maybe_unused mt6360_suspend(struct device *dev)
378378
{
379379
struct i2c_client *i2c = to_i2c_client(dev);
380380

@@ -384,7 +384,7 @@ static int __maybe_unused mt6360_pmu_suspend(struct device *dev)
384384
return 0;
385385
}
386386

387-
static int __maybe_unused mt6360_pmu_resume(struct device *dev)
387+
static int __maybe_unused mt6360_resume(struct device *dev)
388388
{
389389

390390
struct i2c_client *i2c = to_i2c_client(dev);
@@ -395,25 +395,24 @@ static int __maybe_unused mt6360_pmu_resume(struct device *dev)
395395
return 0;
396396
}
397397

398-
static SIMPLE_DEV_PM_OPS(mt6360_pmu_pm_ops,
399-
mt6360_pmu_suspend, mt6360_pmu_resume);
398+
static SIMPLE_DEV_PM_OPS(mt6360_pm_ops, mt6360_suspend, mt6360_resume);
400399

401-
static const struct of_device_id __maybe_unused mt6360_pmu_of_id[] = {
402-
{ .compatible = "mediatek,mt6360_pmu", },
400+
static const struct of_device_id __maybe_unused mt6360_of_id[] = {
401+
{ .compatible = "mediatek,mt6360", },
403402
{},
404403
};
405-
MODULE_DEVICE_TABLE(of, mt6360_pmu_of_id);
404+
MODULE_DEVICE_TABLE(of, mt6360_of_id);
406405

407-
static struct i2c_driver mt6360_pmu_driver = {
406+
static struct i2c_driver mt6360_driver = {
408407
.driver = {
409-
.name = "mt6360_pmu",
410-
.pm = &mt6360_pmu_pm_ops,
411-
.of_match_table = of_match_ptr(mt6360_pmu_of_id),
408+
.name = "mt6360",
409+
.pm = &mt6360_pm_ops,
410+
.of_match_table = of_match_ptr(mt6360_of_id),
412411
},
413-
.probe_new = mt6360_pmu_probe,
412+
.probe_new = mt6360_probe,
414413
};
415-
module_i2c_driver(mt6360_pmu_driver);
414+
module_i2c_driver(mt6360_driver);
416415

417416
MODULE_AUTHOR("Gene Chen <gene_chen@richtek.com>");
418-
MODULE_DESCRIPTION("MT6360 PMU I2C Driver");
417+
MODULE_DESCRIPTION("MT6360 I2C Driver");
419418
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)