History

ptp_qoriq: make structure/function names more consistent

Strings containing "ptp_qoriq" or "qoriq_ptp" which were used for structure/function names were complained by users. Let's just use the unique "ptp_qoriq" to make these names more consistent. This patch is just to unify the names using "ptp_qoriq". It hasn't changed any functions.

Yangbo Lu committed 7 years ago

Commit 1e562c81 parent 4ea7b0c5 files · +171 −171Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/fsl/ptp_qoriq.h+7−7
@@ -49,7 +49,7 @@ struct etts_regs { · 48 unmodified lines
4949 u32 tmr_etts2_l; /* Timestamp of general purpose external trigger */
5050 };
5151
52−struct qoriq_ptp_registers {
52+struct ptp_qoriq_registers {
5353 struct ctrl_regs __iomem *ctrl_regs;
5454 struct alarm_regs __iomem *alarm_regs;
5555 struct fiper_regs __iomem *fiper_regs;
@@ -136,9 +136,9 @@ struct qoriq_ptp_registers { · 80 unmodified lines
136136 #define DEFAULT_FIPER1_PERIOD 1000000000
137137 #define DEFAULT_FIPER2_PERIOD 100000
138138
139−struct qoriq_ptp {
139+struct ptp_qoriq {
140140 void __iomem *base;
141− struct qoriq_ptp_registers regs;
141+ struct ptp_qoriq_registers regs;
142142 spinlock_t lock; /* protects regs */
143143 struct ptp_clock *clock;
144144 struct ptp_clock_info caps;
@@ -172,12 +172,12 @@ static inline void qoriq_write(unsigned __iomem *addr, u32 val) · 27 unmodified lines
172172 }
173173
174174 #ifdef CONFIG_DEBUG_FS
175−void ptp_qoriq_create_debugfs(struct qoriq_ptp *qoriq_ptp);
176−void ptp_qoriq_remove_debugfs(struct qoriq_ptp *qoriq_ptp);
175+void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq);
176+void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq);
177177 #else
178−static inline void ptp_qoriq_create_debugfs(struct qoriq_ptp *qoriq_ptp)
178+static inline void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq)
179179 { }
180−static inline void ptp_qoriq_remove_debugfs(struct qoriq_ptp *qoriq_ptp)
180+static inline void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq)
181181 { }
182182 #endif
183183

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