Skip to content

Commit 708cb5c

Browse files
hsin-hsiungLee Jones
authored andcommitted
mfd: mt6397: Rename macros to something more readable
Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 802d9bd commit 708cb5c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎drivers/mfd/mt6397-core.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
#include <linux/of_irq.h>
1111
#include <linux/regmap.h>
1212
#include <linux/mfd/core.h>
13-
#include <linux/mfd/mt6397/core.h>
1413
#include <linux/mfd/mt6323/core.h>
15-
#include <linux/mfd/mt6397/registers.h>
14+
#include <linux/mfd/mt6397/core.h>
1615
#include <linux/mfd/mt6323/registers.h>
16+
#include <linux/mfd/mt6397/registers.h>
1717

1818
#define MT6397_RTC_BASE 0xe000
1919
#define MT6397_RTC_SIZE 0x3e
2020

21-
#define MT6323_CID_CODE 0x23
22-
#define MT6391_CID_CODE 0x91
23-
#define MT6397_CID_CODE 0x97
21+
#define MT6323_CHIP_ID 0x23
22+
#define MT6391_CHIP_ID 0x91
23+
#define MT6397_CHIP_ID 0x97
2424

2525
static const struct resource mt6397_rtc_resources[] = {
2626
{
@@ -290,7 +290,7 @@ static int mt6397_probe(struct platform_device *pdev)
290290
return pmic->irq;
291291

292292
switch (id & 0xff) {
293-
case MT6323_CID_CODE:
293+
case MT6323_CHIP_ID:
294294
pmic->int_con[0] = MT6323_INT_CON0;
295295
pmic->int_con[1] = MT6323_INT_CON1;
296296
pmic->int_status[0] = MT6323_INT_STATUS0;
@@ -304,8 +304,8 @@ static int mt6397_probe(struct platform_device *pdev)
304304
0, pmic->irq_domain);
305305
break;
306306

307-
case MT6397_CID_CODE:
308-
case MT6391_CID_CODE:
307+
case MT6391_CHIP_ID:
308+
case MT6397_CHIP_ID:
309309
pmic->int_con[0] = MT6397_INT_CON0;
310310
pmic->int_con[1] = MT6397_INT_CON1;
311311
pmic->int_status[0] = MT6397_INT_STATUS0;

0 commit comments

Comments
 (0)