@@ -30,8 +30,6 @@ int switchtec_handler(const char *optarg, void *value_addr,
3030 const struct argconfig_options * opt );
3131int mfg_handler (const char * optarg , void * value_addr ,
3232 const struct argconfig_options * opt );
33- int pax_handler (const char * optarg , void * value_addr ,
34- const struct argconfig_options * opt );
3533enum switchtec_fw_type check_and_print_fw_image (int img_fd ,
3634 const char * img_filename );
3735
@@ -73,16 +71,7 @@ enum switchtec_fw_type check_and_print_fw_image(int img_fd,
7371 required_positional)
7472
7573#define __DEVICE_OPTION (type ) \
76- DEVICE_OPTION_BASIC(UART_HELP_TEXT, switchtec_handler, (type)), \
77- { \
78- "pax", 'x', .cfg_type=CFG_CUSTOM, \
79- .value_addr=&cfg.dev, \
80- .argument_type=required_argument, \
81- .custom_handler=pax_handler, \
82- .env="SWITCHTEC_PAX", \
83- .help="PAX ID within a PAX fabric. Only valid on " \
84- "Switchtec PAX devices" \
85- }
74+ DEVICE_OPTION_BASIC(UART_HELP_TEXT, switchtec_handler, (type))
8675
8776#define DEVICE_OPTION __DEVICE_OPTION(required_positional)
8877#define DEVICE_OPTION_OPTIONAL __DEVICE_OPTION(optional_positional)
0 commit comments