Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp244697pxb; Thu, 12 Nov 2020 02:42:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJw148rn3irfiSyS3poWmgFjVeogUUuiPahWI3PRRQr0Y+UbdgKaQ26cwujCPYRVqdHRwNGR X-Received: by 2002:a17:906:5793:: with SMTP id k19mr30616307ejq.410.1605177743809; Thu, 12 Nov 2020 02:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605177743; cv=none; d=google.com; s=arc-20160816; b=AoQFn6t8cvySSsgIwySfj2K0/b8bd8w/EQNGGJ/trCJ4tcY25K/AJXXo/TQpXvtRL+ lxL5inBa8fPC+B7oQrasmPWTXp0pLiX1cyIPKu3ltr/Hvj2bjhUADXXC1aZafisWHqHY 9tOt3PVqVHhnfkOpuP1sCx7OL/NsTeG+0U2JP3mITfT/E8mBo/O4Iull6tPQFGMCF+tO QuCI/vTiPhyp274rfgSNDglVOigqH/XvlmDsoHjdDYXfpMuwsnQn0+TtHOqWN8Ld7fV8 pA53hK8Ec49zErS2piyTERrwZKw+DZpW90e74w/HoWjvL8/dVfFWlQCq2jA0s65K1P72 Ml6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=kmywJl/aDPZ8Djl80CkqitFsv9eXGzrnwpaDbuS6TqE=; b=XUNcwo4Tff9dVZXhj3721nml+TFTg8sD/pbkdirbZNNjp6YQMuI3R+SNpv8iT9AdSr 3i6rtgLUqcgUjrnH2GOQEgME0YOLpKL1Fb3xpwxFRbfsD0VlqmQJhUi8CpN3XQ3vuZ1A sw5PvOnERPV+QgfkyzGlqpofgC6Yn4HOHNzZBwnseiXz3Q17TK6eYH3N3MZANkIhbvnD rpcAZ33nA4umIov9ff0TDLg7sWE28+kqQRHjmOECcRceqAGnKyLGptXmk0R7vyA5aThh JWCxs3/Nog4Oa9N8R63Z0NJOWbAsdBsW5IceIpp7JOw2fhgoemXr2BL8vv5OUc+UxBVK q04A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gFnKmgf9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si3576131edt.530.2020.11.12.02.42.00; Thu, 12 Nov 2020 02:42:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gFnKmgf9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728008AbgKLKk2 (ORCPT + 99 others); Thu, 12 Nov 2020 05:40:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728000AbgKLKk1 (ORCPT ); Thu, 12 Nov 2020 05:40:27 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31E06C0613D1; Thu, 12 Nov 2020 02:40:27 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id c66so4160597pfa.4; Thu, 12 Nov 2020 02:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kmywJl/aDPZ8Djl80CkqitFsv9eXGzrnwpaDbuS6TqE=; b=gFnKmgf9WUj00cMS+ML1cOc8wfX/uSoWwl1npaDaGB6/w+bJYpQP1GEExHFxBYRDJ8 OUyKEZM5MUYTMTwv+15zMTr8NU0oQHME5hLX35qcv26dpNxM2s76dJ+cBolAZPk2V7V5 mSO1NggUJYQEj//BvIc8FT6AojXPCk9o3ChwYPsSabc/ULf22J98clVnbSHg4OqudJjy nT6E1jmPwjsEAZ6Yz73F9P/1qyKE4KjsP3lbi7uvZhlaovqG1TVbfewNoKSgz9voL7Oi RVR09eP9lub18BeeiWg5tPinH75FKrnngj4Vi8aKIwCIVzZ0FFA5AVfAIADg8f77SQaE qWsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kmywJl/aDPZ8Djl80CkqitFsv9eXGzrnwpaDbuS6TqE=; b=SZLLsN0NRDMjih6lfSNy0KBkpI26ApSkMgh1PEVrDvP2JlooZBfYIYtj++T9ZtYqw+ DmbHP+zEfLyOEAbcZLo5yUYPJz4/HJE4cfiOnoG3CllGINKlAMs5LI+1BS+81vxAnV3O NM/igCPvQq51T6fV8DH9NESLcoVAfD03u0jlYud5F7vd9HlJB4dPIYZIv1/qGJAQ8sL4 6foVhNfS2lyAuxSIvZZVw/tuIjPb/Y6HMkRo5sLDsZ19F3YHBEoMZPBJEJWaHNYRp2CS Kgi84BSHOt2DMCCT6K+y8Mk0GD5VZxMuKqTvdfCTiB32cFkz8bSnPkGvYwGVR23ijksr emAg== X-Gm-Message-State: AOAM533X2kc+6dH7bsS1evsmpKxHNjg50Ldenz4sCQwVEIxc72yCM+yp RePSRD6kLCNV4IY4i4Le4Ug= X-Received: by 2002:a63:d70b:: with SMTP id d11mr24597790pgg.94.1605177626791; Thu, 12 Nov 2020 02:40:26 -0800 (PST) Received: from localhost.localdomain ([2402:7500:47a:a27:cf8e:7817:51df:a883]) by smtp.gmail.com with ESMTPSA id mp16sm6414094pjb.13.2020.11.12.02.40.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Nov 2020 02:40:26 -0800 (PST) From: Gene Chen To: sre@kernel.org, matthias.bgg@gmail.com, robh+dt@kernel.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, gene_chen@richtek.com, Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com Subject: [PATCH v7 06/11] mfd: mt6360: Rename mt6360_pmu by mt6360 Date: Thu, 12 Nov 2020 18:39:53 +0800 Message-Id: <1605177598-23501-7-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605177598-23501-1-git-send-email-gene.chen.richtek@gmail.com> References: <1605177598-23501-1-git-send-email-gene.chen.richtek@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gene Chen Rename mt6360_pmu by mt6360, because of including not only PMU part, but also entire MT6360 IC Signed-off-by: Gene Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6360-core.c | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.c index 332eb5d..f75122b 100644 --- a/drivers/mfd/mt6360-core.c +++ b/drivers/mfd/mt6360-core.c @@ -119,7 +119,7 @@ #define MT6360_LDO6_PGB_EVT 126 #define MT6360_LDO7_PGB_EVT 127 -static const struct regmap_irq mt6360_pmu_irqs[] = { +static const struct regmap_irq mt6360_irqs[] = { REGMAP_IRQ_REG_LINE(MT6360_CHG_TREG_EVT, 8), REGMAP_IRQ_REG_LINE(MT6360_CHG_AICR_EVT, 8), REGMAP_IRQ_REG_LINE(MT6360_CHG_MIVR_EVT, 8), @@ -216,9 +216,9 @@ static int mt6360_pmu_handle_post_irq(void *irq_drv_data) MT6360_PMU_IRQ_SET, MT6360_IRQ_RETRIG, MT6360_IRQ_RETRIG); } -static struct regmap_irq_chip mt6360_pmu_irq_chip = { - .irqs = mt6360_pmu_irqs, - .num_irqs = ARRAY_SIZE(mt6360_pmu_irqs), +static struct regmap_irq_chip mt6360_irq_chip = { + .irqs = mt6360_irqs, + .num_irqs = ARRAY_SIZE(mt6360_irqs), .num_regs = MT6360_PMU_IRQ_REGNUM, .mask_base = MT6360_PMU_CHG_MASK1, .status_base = MT6360_PMU_CHG_IRQ1, @@ -308,7 +308,7 @@ static const unsigned short mt6360_slave_addr[MT6360_SLAVE_MAX] = { MT6360_TCPC_SLAVEID, }; -static int mt6360_pmu_probe(struct i2c_client *client) +static int mt6360_probe(struct i2c_client *client) { struct mt6360_ddata *ddata; unsigned int reg_data; @@ -339,10 +339,10 @@ static int mt6360_pmu_probe(struct i2c_client *client) return -ENODEV; } - mt6360_pmu_irq_chip.irq_drv_data = ddata; + mt6360_irq_chip.irq_drv_data = ddata; ret = devm_regmap_add_irq_chip(&client->dev, ddata->regmap, client->irq, IRQF_TRIGGER_FALLING, 0, - &mt6360_pmu_irq_chip, &ddata->irq_data); + &mt6360_irq_chip, &ddata->irq_data); if (ret) { dev_err(&client->dev, "Failed to add Regmap IRQ Chip\n"); return ret; @@ -374,7 +374,7 @@ static int mt6360_pmu_probe(struct i2c_client *client) return 0; } -static int __maybe_unused mt6360_pmu_suspend(struct device *dev) +static int __maybe_unused mt6360_suspend(struct device *dev) { struct i2c_client *i2c = to_i2c_client(dev); @@ -384,7 +384,7 @@ static int __maybe_unused mt6360_pmu_suspend(struct device *dev) return 0; } -static int __maybe_unused mt6360_pmu_resume(struct device *dev) +static int __maybe_unused mt6360_resume(struct device *dev) { struct i2c_client *i2c = to_i2c_client(dev); @@ -395,25 +395,24 @@ static int __maybe_unused mt6360_pmu_resume(struct device *dev) return 0; } -static SIMPLE_DEV_PM_OPS(mt6360_pmu_pm_ops, - mt6360_pmu_suspend, mt6360_pmu_resume); +static SIMPLE_DEV_PM_OPS(mt6360_pm_ops, mt6360_suspend, mt6360_resume); -static const struct of_device_id __maybe_unused mt6360_pmu_of_id[] = { - { .compatible = "mediatek,mt6360_pmu", }, +static const struct of_device_id __maybe_unused mt6360_of_id[] = { + { .compatible = "mediatek,mt6360", }, {}, }; -MODULE_DEVICE_TABLE(of, mt6360_pmu_of_id); +MODULE_DEVICE_TABLE(of, mt6360_of_id); -static struct i2c_driver mt6360_pmu_driver = { +static struct i2c_driver mt6360_driver = { .driver = { - .name = "mt6360_pmu", - .pm = &mt6360_pmu_pm_ops, - .of_match_table = of_match_ptr(mt6360_pmu_of_id), + .name = "mt6360", + .pm = &mt6360_pm_ops, + .of_match_table = of_match_ptr(mt6360_of_id), }, - .probe_new = mt6360_pmu_probe, + .probe_new = mt6360_probe, }; -module_i2c_driver(mt6360_pmu_driver); +module_i2c_driver(mt6360_driver); MODULE_AUTHOR("Gene Chen "); -MODULE_DESCRIPTION("MT6360 PMU I2C Driver"); +MODULE_DESCRIPTION("MT6360 I2C Driver"); MODULE_LICENSE("GPL v2"); -- 2.7.4