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
10#include <linux/of_irq.h>10#include <linux/of_irq.h>
11#include <linux/regmap.h>11#include <linux/regmap.h>
12#include <linux/mfd/core.h>12#include <linux/mfd/core.h>
13#include <linux/mfd/mt6397/core.h>
14#include <linux/mfd/mt6323/core.h>13#include <linux/mfd/mt6323/core.h>
15#include <linux/mfd/mt6397/registers.h>14#include <linux/mfd/mt6397/core.h>
16#include <linux/mfd/mt6323/registers.h>15#include <linux/mfd/mt6323/registers.h>
16#include <linux/mfd/mt6397/registers.h>
17 17
18#define MT6397_RTC_BASE 0xe00018#define MT6397_RTC_BASE 0xe000
19#define MT6397_RTC_SIZE 0x3e19#define MT6397_RTC_SIZE 0x3e
20 20
21#define MT6323_CID_CODE 0x2321#define MT6323_CHIP_ID 0x23
22#define MT6391_CID_CODE 0x9122#define MT6391_CHIP_ID 0x91
23#define MT6397_CID_CODE 0x9723#define MT6397_CHIP_ID 0x97
24 24
25static const struct resource mt6397_rtc_resources[] = {25static const struct resource mt6397_rtc_resources[] = {
26 {26 {
@@ -290,7 +290,7 @@ static int mt6397_probe(struct platform_device *pdev) · 263 unmodified lines
290 return pmic->irq;290 return pmic->irq;
291 291
292 switch (id & 0xff) {292 switch (id & 0xff) {
293 case MT6323_CID_CODE:293 case MT6323_CHIP_ID:
294 pmic->int_con[0] = MT6323_INT_CON0;294 pmic->int_con[0] = MT6323_INT_CON0;
295 pmic->int_con[1] = MT6323_INT_CON1;295 pmic->int_con[1] = MT6323_INT_CON1;
296 pmic->int_status[0] = MT6323_INT_STATUS0;296 pmic->int_status[0] = MT6323_INT_STATUS0;
@@ -304,8 +304,8 @@ static int mt6397_probe(struct platform_device *pdev) · 7 unmodified lines
304 0, pmic->irq_domain);304 0, pmic->irq_domain);
305 break;305 break;
306 306
307 case MT6397_CID_CODE:307 case MT6391_CHIP_ID:
308 case MT6391_CID_CODE:308 case MT6397_CHIP_ID:
309 pmic->int_con[0] = MT6397_INT_CON0;309 pmic->int_con[0] = MT6397_INT_CON0;
310 pmic->int_con[1] = MT6397_INT_CON1;310 pmic->int_con[1] = MT6397_INT_CON1;
311 pmic->int_status[0] = MT6397_INT_STATUS0;311 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