summaryrefslogtreecommitdiffstats
path: root/drivers/ptp/ptp_clockmatrix.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@inria.fr>2020-01-01 08:43:31 +0100
committerDavid S. Miller <davem@davemloft.net>2020-01-03 01:31:03 +0100
commit6485f9ae3b96edeb2513528a6ad4fd77ee7bafc2 (patch)
tree67361d5792ed6ed33149161b9b41113829bddf5a /drivers/ptp/ptp_clockmatrix.c
parentsfc: Remove unnecessary dependencies on I2C (diff)
downloadlinux-6485f9ae3b96edeb2513528a6ad4fd77ee7bafc2.tar.xz
linux-6485f9ae3b96edeb2513528a6ad4fd77ee7bafc2.zip
ptp: ptp_clockmatrix: constify copied structure
The idtcm_caps structure is only copied into another structure, so make it const. The opportunity for this change was found using Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/ptp/ptp_clockmatrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clockmatrix.c
index a5110b7b4ece..e85836715f0b 100644
--- a/drivers/ptp/ptp_clockmatrix.c
+++ b/drivers/ptp/ptp_clockmatrix.c
@@ -1102,7 +1102,7 @@ static void idtcm_display_version_info(struct idtcm *idtcm)
product_id, hw_rev_id, bond_id, csr_id, irq_id);
}
-static struct ptp_clock_info idtcm_caps = {
+static const struct ptp_clock_info idtcm_caps = {
.owner = THIS_MODULE,
.max_adj = 244000,
.n_per_out = 1,