flash/nor/core, target: don't ask for working mem if no target algo
[fw/openocd] / src / flash / nor / non_cfi.h
index cc6004e82221ef3d326086a400c6e5d7f4bf95ba..c411cb885253691c1b81ea054e47fd0a67a64388 100644 (file)
  *   GNU General Public License for more details.                          *
  *                                                                         *
  *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef NON_CFI_H
-#define NON_CFI_H
 
-#include <flash/flash.h>
+#ifndef OPENOCD_FLASH_NOR_NON_CFI_H
+#define OPENOCD_FLASH_NOR_NON_CFI_H
 
-struct non_cfi
-{
+struct non_cfi {
        uint16_t mfr;
        uint16_t id;
        uint16_t pri_id;
@@ -37,4 +33,4 @@ struct non_cfi
 
 void cfi_fixup_non_cfi(struct flash_bank *bank);
 
-#endif /* NON_CFI_H */
+#endif /* OPENOCD_FLASH_NOR_NON_CFI_H */