thunderbolt: Move nvm_write_ops to tb.h
authorRajmohan Mani <rajmohan.mani@intel.com>
Mon, 12 Apr 2021 11:01:46 +0000 (14:01 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Jun 2021 07:53:32 +0000 (10:53 +0300)
commitff3a8306456755689babc7bcc29c60e582738c7b
treecffac076801acea6978b535de40bfb0700349c53
parent3fb10ea4ce86d4d06622be894099c59872e92c57
thunderbolt: Move nvm_write_ops to tb.h

Currently these write ops are used for updating router firmware images
only. Moving to tb.h helps the retimers also to use the same ops.

Also add tb_ prefix to the enum while there.

Signed-off-by: Rajmohan Mani <rajmohan.mani@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.h