]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ptp_clockmatrix: constify copied structure
authorJulia Lawall <Julia.Lawall@inria.fr>
Wed, 1 Jan 2020 07:43:31 +0000 (08:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2020 00:31:03 +0000 (16:31 -0800)
commitc6d92d570692d6719ff42734a6099e3bc47c4210
tree67361d5792ed6ed33149161b9b41113829bddf5a
parentf23a557efd7af55e5f4f4cc57449df88fdff6a95
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>
drivers/ptp/ptp_clockmatrix.c