Skip to content

Commit 1716efd

Browse files
superm1westeri
authored andcommitted
thunderbolt: Use const qualifier for ring_interrupt_index
`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>
1 parent c82510b commit 1716efd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/thunderbolt/nhi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#define QUIRK_AUTO_CLEAR_INT BIT(0)
4747
#define QUIRK_E2E BIT(1)
4848

49-
static int ring_interrupt_index(struct tb_ring *ring)
49+
static int ring_interrupt_index(const struct tb_ring *ring)
5050
{
5151
int bit = ring->hop;
5252
if (!ring->is_tx)

0 commit comments

Comments
 (0)