@@ -364,7 +364,7 @@ int flash_stm32_option_bytes_lock(const struct device *dev, bool enable)
364364}
365365
366366#if defined(CONFIG_FLASH_EX_OP_ENABLED ) && defined(CONFIG_FLASH_STM32_BLOCK_REGISTERS )
367- static int flash_stm32_control_register_disable (const struct device * dev )
367+ int flash_stm32_control_register_disable (const struct device * dev )
368368{
369369 FLASH_TypeDef * regs = FLASH_STM32_REGS (dev );
370370
@@ -394,7 +394,7 @@ static int flash_stm32_control_register_disable(const struct device *dev)
394394#endif
395395}
396396
397- static int flash_stm32_option_bytes_disable (const struct device * dev )
397+ int flash_stm32_option_bytes_disable (const struct device * dev )
398398{
399399 FLASH_TypeDef * regs = FLASH_STM32_REGS (dev );
400400
@@ -432,41 +432,6 @@ flash_stm32_get_parameters(const struct device *dev)
432432 return & flash_stm32_parameters ;
433433}
434434
435- #ifdef CONFIG_FLASH_EX_OP_ENABLED
436- static int flash_stm32_ex_op (const struct device * dev , uint16_t code ,
437- const uintptr_t in , void * out )
438- {
439- int rv = - ENOTSUP ;
440-
441- flash_stm32_sem_take (dev );
442-
443- switch (code ) {
444- #if defined(CONFIG_FLASH_STM32_WRITE_PROTECT )
445- case FLASH_STM32_EX_OP_SECTOR_WP :
446- rv = flash_stm32_ex_op_sector_wp (dev , in , out );
447- break ;
448- #endif /* CONFIG_FLASH_STM32_WRITE_PROTECT */
449- #if defined(CONFIG_FLASH_STM32_READOUT_PROTECTION )
450- case FLASH_STM32_EX_OP_RDP :
451- rv = flash_stm32_ex_op_rdp (dev , in , out );
452- break ;
453- #endif /* CONFIG_FLASH_STM32_READOUT_PROTECTION */
454- #if defined(CONFIG_FLASH_STM32_BLOCK_REGISTERS )
455- case FLASH_STM32_EX_OP_BLOCK_OPTION_REG :
456- rv = flash_stm32_option_bytes_disable (dev );
457- break ;
458- case FLASH_STM32_EX_OP_BLOCK_CONTROL_REG :
459- rv = flash_stm32_control_register_disable (dev );
460- break ;
461- #endif /* CONFIG_FLASH_STM32_BLOCK_REGISTERS */
462- }
463-
464- flash_stm32_sem_give (dev );
465-
466- return rv ;
467- }
468- #endif
469-
470435static struct flash_stm32_priv flash_data = {
471436 .regs = (FLASH_TypeDef * ) DT_INST_REG_ADDR (0 ),
472437 /* Getting clocks information from device tree description depending
0 commit comments