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>
This commit is contained in:
Julia Lawall 2020-01-01 08:43:31 +01:00 committed by David S. Miller
parent edf4579123
commit 6485f9ae3b

View File

@ -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,