Commit 6485f9ae authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller

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: default avatarJulia Lawall <Julia.Lawall@inria.fr>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent edf45791
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment