From ddda63476cdd16b718611b95944f66ec921b2ebf Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 13 Jan 2021 20:09:09 -0800 Subject: [PATCH] Make internal functions static --- modules/mqnic/mqnic_i2c.c | 8 ++++---- modules/mqnic/mqnic_ptp.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/mqnic/mqnic_i2c.c b/modules/mqnic/mqnic_i2c.c index 0b7393128..e1a0383b7 100644 --- a/modules/mqnic/mqnic_i2c.c +++ b/modules/mqnic/mqnic_i2c.c @@ -36,7 +36,7 @@ either expressed or implied, of The Regents of the University of California. #include #include -void mqnic_i2c_set_scl(void *data, int state) +static void mqnic_i2c_set_scl(void *data, int state) { struct mqnic_i2c_priv *priv = data; @@ -50,7 +50,7 @@ void mqnic_i2c_set_scl(void *data, int state) } } -void mqnic_i2c_set_sda(void *data, int state) +static void mqnic_i2c_set_sda(void *data, int state) { struct mqnic_i2c_priv *priv = data; @@ -64,14 +64,14 @@ void mqnic_i2c_set_sda(void *data, int state) } } -int mqnic_i2c_get_scl(void *data) +static int mqnic_i2c_get_scl(void *data) { struct mqnic_i2c_priv *priv = data; return !!(ioread32(priv->scl_in_reg) & priv->scl_in_mask); } -int mqnic_i2c_get_sda(void *data) +static int mqnic_i2c_get_sda(void *data) { struct mqnic_i2c_priv *priv = data; diff --git a/modules/mqnic/mqnic_ptp.c b/modules/mqnic/mqnic_ptp.c index 40a5e193e..0ed251465 100644 --- a/modules/mqnic/mqnic_ptp.c +++ b/modules/mqnic/mqnic_ptp.c @@ -237,7 +237,7 @@ static int mqnic_phc_enable(struct ptp_clock_info *ptp, struct ptp_clock_request } } -void mqnic_phc_set_from_system_clock(struct ptp_clock_info *ptp) +static void mqnic_phc_set_from_system_clock(struct ptp_clock_info *ptp) { struct timespec64 ts;