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:
Родитель
edf4579123
Коммит
6485f9ae3b
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче