]> git.baikalelectronics.ru Git - kernel.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>
Wed, 5 Apr 2023 09:16:39 +0000 (11:16 +0200)
commitf315ab4f088fa3a65b397c6e52a606b8cc3ea253
treebf3372149998fddadd2c29ebdb37b76ca53edbe5
parent2133f82e476ff56b6dd2c0551e198b14d773228e
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