From: Julia Lawall Date: Wed, 1 Jan 2020 07:43:31 +0000 (+0100) Subject: ptp: ptp_clockmatrix: constify copied structure X-Git-Tag: Ubuntu-5.13.0-19.19~6812^2~176 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6485f9ae3b96edeb2513528a6ad4fd77ee7bafc2;p=mirror_ubuntu-jammy-kernel.git 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 Acked-by: Richard Cochran Signed-off-by: David S. Miller --- 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,