Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / driver.h
index ef69a0f424f2d3e7c2ab979cd9bb60254e6ead13..9c56d4ea8ccda07c285ddd9e88e8bc7c6aa7dbf6 100644 (file)
@@ -231,6 +231,6 @@ struct flash_driver {
  * @param name The name of the requested driver.
  * @returns The flash_driver called @c name, or NULL if not found.
  */
-struct flash_driver *flash_driver_find_by_name(const char *name);
+const struct flash_driver *flash_driver_find_by_name(const char *name);
 
 #endif /* OPENOCD_FLASH_NOR_DRIVER_H */