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:47:52 +0000 (12:47 +0200)
commita74a2e124c4888c3c1cc3091aa5f4044bf92fd54
tree7ea4d7958f47dc0cdf00ec6c232c6df7e495a5ed
parent752007df40ca748b7867ddd0f5e36448509af0ca
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