History

ptp_qoriq: export extts_clean_up() function

Export extts_clean_up() function so that dpaa2-ptp driver is able to reuse it.

Yangbo Lu committed 6 years ago

Commit 94294391 parent 10bc8772 files · +3 −2Browse files

Unified · Split

2 files
  1. drivers/ptp/ptp_qoriq.c +2 −2
  2. include/linux/fsl/ptp_qoriq.h +1 −0
drivers/ptp/ptp_qoriq.c+2−2
@@ -74,8 +74,7 @@ static void set_fipers(struct ptp_qoriq *ptp_qoriq) · 73 unmodified lines
74 ptp_qoriq->write(&regs->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2);74 ptp_qoriq->write(&regs->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2);
75}75}
76 76
77static int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index,77int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event)
78 bool update_event)
79{78{
80 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;79 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs;
81 struct ptp_clock_event event;80 struct ptp_clock_event event;
@@ -121,6 +120,7 @@ static int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, · 39 unmodified lines
121 120
122 return 0;121 return 0;
123}122}
123EXPORT_SYMBOL_GPL(extts_clean_up);
124 124
125/*125/*
126 * Interrupt service routine126 * Interrupt service routine
include/linux/fsl/ptp_qoriq.h+1−0
@@ -192,6 +192,7 @@ int ptp_qoriq_settime(struct ptp_clock_info *ptp, · 191 unmodified lines
192 const struct timespec64 *ts);192 const struct timespec64 *ts);
193int ptp_qoriq_enable(struct ptp_clock_info *ptp,193int ptp_qoriq_enable(struct ptp_clock_info *ptp,
194 struct ptp_clock_request *rq, int on);194 struct ptp_clock_request *rq, int on);
195int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event);
195#ifdef CONFIG_DEBUG_FS196#ifdef CONFIG_DEBUG_FS
196void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq);197void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq);
197void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq);198void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq);

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