diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2020-01-01 08:43:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-02 16:31:03 -0800 |
commit | 6485f9ae3b96edeb2513528a6ad4fd77ee7bafc2 (patch) | |
tree | 67361d5792ed6ed33149161b9b41113829bddf5a /drivers/ptp | |
parent | edf4579123e234ada9fe12fbc8436923fcceb963 (diff) |
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 'drivers/ptp')
-rw-r--r-- | drivers/ptp/ptp_clockmatrix.c | 2 |
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, |