]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thunderbolt: Use const qualifier for `ring_interrupt_index`
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 10 Mar 2023 17:20:49 +0000 (11:20 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:15 +0000 (12:49 +0200)
commit587dd59049bf558ab647b27331a3143900c2355b
tree9f0556b657f11c23c9fae174ffb5daa5920c5466
parent278fb64ce473d9f789872cfdcf01bb3e7cd52c5a
thunderbolt: Use const qualifier for `ring_interrupt_index`

commit 1716efdb07938bd6510e1127d02012799112c433 upstream.

`ring_interrupt_index` doesn't change the data for `ring` so mark it as
const. This is needed by the following patch that disables interrupt
auto clear for rings.

Cc: Sanju Mehta <Sanju.Mehta@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/nhi.c