History

mfd: mt6397: Rename macros to something more readable

Hsin-Hsiung Wang committed 7 years ago

Commit 708cb5c1 parent 802d9bd1 file · +8 −8Browse files

Unified · Split

drivers/mfd/mt6397-core.c+8−8
@@ -10,17 +10,17 @@ · 9 unmodified lines
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) · 263 unmodified lines
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) · 7 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t