Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1364348imc; Mon, 11 Mar 2019 12:04:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqypqtd6H/T2utYVLw/Yu9xeG1C1HtRTJ1zwehlZuHRGuykkQClC1V4yROzraG7btw4254lk X-Received: by 2002:a63:7503:: with SMTP id q3mr29367550pgc.98.1552331047707; Mon, 11 Mar 2019 12:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552331047; cv=none; d=google.com; s=arc-20160816; b=1Cr+zxSqHZkA9sLj/MlYxoRS4qXSOf1rZ4KVBEHSKq0teskHLT+23hvYhpFvBdLTYj r67jAgvwgwn8FJl0dYZyEW2fYzdyknMojObpaZxl1S9SlYDEVE2fM+c7CrZy+WGe6z1A tITWX+1GWHkcgVn/N/yyOACVWnXgwihH4UQw8XNTsRq/Av7MOG0F60hOYZmmN+kc99n+ ZU/YP0iRILbkeiUO3uttkPCqHOBULoONvoE+zfqjw5gRtuNPaUjZXuutl9EdGXL7vRN+ PMzESS02lZPdomupDY7NSoLDcbwobZzqH/AF6pCRfYIiCv6/Cw/pVb9VvhCoaYlQLN72 B9zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nUV5m2aFo4shvj/SrxXsZNgLGTfU+lNqDERAoyLhhKQ=; b=glPD/Ln+a4Tco3d2RJWu+yh+HHaQB5AwkO8RIhihSz1iCMRjHFTd0prYS+2pOXrPSz gX1FnxGeGw1AgCDFdV90IZkYlVmXU8esdFF7LVqNGLV7xDT8MmhFQzoc+4H/96vXPz77 DjJAFxIOHQDRNr1ncTiG/xYrJUH46nMv4qPBeoqRLAsEpq8YKVuDaIlzHLHfkCkk2AAD Tch0KksuvPwJMgDDuy2jNNkcS/0TgaJp6gF1y7ge/YwAer09FbG9U/U1nMQVAywsyRS/ ZLORq+5pOsFz8mFNzb2H3+AQTR48U0GEbp8Nd4AeZRea6kwHQNGAcptbWuIL30bj1QcN +1gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ba5bSQnH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si5405365pgv.70.2019.03.11.12.03.51; Mon, 11 Mar 2019 12:04:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ba5bSQnH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728576AbfCKTCI (ORCPT + 99 others); Mon, 11 Mar 2019 15:02:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:44620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbfCKTCH (ORCPT ); Mon, 11 Mar 2019 15:02:07 -0400 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B0B12147A; Mon, 11 Mar 2019 19:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552330925; bh=B3BGqfVJfoI+9HcuLNBFky9i71Oc5Sd5wE2NVIAeHzM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ba5bSQnHZOUDkjZHQ/KFuqnRNR4K2sOL6fZaObjTDAP80VEKDzyKslsXM9zi+XuUN 9WyuX/2XL5OLuXyvWPD3jLjGUGpUys47fTvb+PzjUDl4TP0iLEH4ndu5LuHbZJ+HSl 3G9iNxy7kuBfzBSNYLieT6nIbiL09Gy/i6LH3MkA= Received: by mail-wm1-f52.google.com with SMTP id 4so202435wmf.5; Mon, 11 Mar 2019 12:02:05 -0700 (PDT) X-Gm-Message-State: APjAAAWmi3JH2PmWgeRWmh42tEikLeY86m00Ybd5X97acalXmOneZVZ9 gH8OoYrjo39+BniduYeLcpyN/j7vq2QbiHxuu1A= X-Received: by 2002:a7b:cbcd:: with SMTP id n13mr113518wmi.92.1552330923855; Mon, 11 Mar 2019 12:02:03 -0700 (PDT) MIME-Version: 1.0 References: <1552275991-34648-1-git-send-email-hsin-hsiung.wang@mediatek.com> <1552275991-34648-2-git-send-email-hsin-hsiung.wang@mediatek.com> In-Reply-To: <1552275991-34648-2-git-send-email-hsin-hsiung.wang@mediatek.com> From: Sean Wang Date: Mon, 11 Mar 2019 12:01:52 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/9] mfd: mt6397: clean up code To: Hsin-Hsiung Wang Cc: Lee Jones , Rob Herring , Matthias Brugger , Mark Brown , Eddie Huang , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, Alexandre Belloni , srv_heupstream , Alessandro Zummo , Marc Zyngier , Sean Wang , linux-kernel@vger.kernel.org, Liam Girdwood , linux-mediatek@lists.infradead.org, Mark Rutland , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, Mar 10, 2019 at 8:48 PM Hsin-Hsiung Wang wrote: > > clean up code > > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/mfd/mt6397-core.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c > index 77b64bd..acb9812 100644 > --- a/drivers/mfd/mt6397-core.c > +++ b/drivers/mfd/mt6397-core.c > @@ -18,17 +18,17 @@ > #include > #include > #include > -#include > #include > -#include > +#include > #include > +#include > > #define MT6397_RTC_BASE 0xe000 > #define MT6397_RTC_SIZE 0x3e > > -#define MT6323_CID_CODE 0x23 > -#define MT6391_CID_CODE 0x91 > -#define MT6397_CID_CODE 0x97 > +#define MT6323_CHIP_ID 0x23 > +#define MT6391_CHIP_ID 0x91 > +#define MT6397_CHIP_ID 0x97 > It would be not necessary to simply rename the definition or do you have a strong reason to do that? > static const struct resource mt6397_rtc_resources[] = { > { > @@ -298,7 +298,7 @@ static int mt6397_probe(struct platform_device *pdev) > return pmic->irq; > > switch (id & 0xff) { > - case MT6323_CID_CODE: > + case MT6323_CHIP_ID: > pmic->int_con[0] = MT6323_INT_CON0; > pmic->int_con[1] = MT6323_INT_CON1; > pmic->int_status[0] = MT6323_INT_STATUS0; > @@ -312,8 +312,8 @@ static int mt6397_probe(struct platform_device *pdev) > 0, pmic->irq_domain); > break; > > - case MT6397_CID_CODE: > - case MT6391_CID_CODE: > + case MT6391_CHIP_ID: > + case MT6397_CHIP_ID: > pmic->int_con[0] = MT6397_INT_CON0; > pmic->int_con[1] = MT6397_INT_CON1; > pmic->int_status[0] = MT6397_INT_STATUS0; > -- > 1.9.1 > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek