Skip to content

Commit 64455ea

Browse files
superm1gregkh
authored andcommitted
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 <[email protected]> Cc: [email protected] Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Mika Westerberg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6b3b180 commit 64455ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thunderbolt/nhi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#define NHI_MAILBOX_TIMEOUT 500 /* ms */
3232

33-
static int ring_interrupt_index(struct tb_ring *ring)
33+
static int ring_interrupt_index(const struct tb_ring *ring)
3434
{
3535
int bit = ring->hop;
3636
if (!ring->is_tx)

0 commit comments

Comments
 (0)