summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/switch.c
diff options
context:
space:
mode:
authorRajmohan Mani <rajmohan.mani@intel.com>2021-04-12 13:01:46 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2021-06-01 09:53:32 +0200
commitff3a8306456755689babc7bcc29c60e582738c7b (patch)
treecffac076801acea6978b535de40bfb0700349c53 /drivers/thunderbolt/switch.c
parentthunderbolt: Add support for retimer NVM upgrade when there is no link (diff)
downloadlinux-ff3a8306456755689babc7bcc29c60e582738c7b.tar.xz
linux-ff3a8306456755689babc7bcc29c60e582738c7b.zip
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>
Diffstat (limited to 'drivers/thunderbolt/switch.c')
-rw-r--r--drivers/thunderbolt/switch.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c
index dae59919e2bf..bf4821d3bbab 100644
--- a/drivers/thunderbolt/switch.c
+++ b/drivers/thunderbolt/switch.c
@@ -26,11 +26,6 @@ struct nvm_auth_status {
u32 status;
};
-enum nvm_write_ops {
- WRITE_AND_AUTHENTICATE = 1,
- WRITE_ONLY = 2,
-};
-
/*
* Hold NVM authentication failure status per switch This information
* needs to stay around even when the switch gets power cycled so we