File: 0011-W25Q80BV-Un-const-data-argument-to-program-function.patch

package info (click to toggle)
hackrf 2015.07.2-11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 69,764 kB
  • ctags: 9,327
  • sloc: ansic: 13,907; python: 696; vhdl: 218; sh: 32; makefile: 15
file content (39 lines) | stat: -rw-r--r-- 1,598 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 466c6742481ce1f0865fbf9df87e288140cb5b65 Mon Sep 17 00:00:00 2001
From: Jared Boone <jboone@earfeast.com>
Date: Tue, 4 Nov 2014 18:22:05 -0800
Subject: [PATCH 11/68] W25Q80BV: Un-const data argument to program function.

---
 firmware/common/w25q80bv.c | 2 +-
 firmware/common/w25q80bv.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/firmware/common/w25q80bv.c b/firmware/common/w25q80bv.c
index fe64b95..e61da8a 100644
--- a/firmware/common/w25q80bv.c
+++ b/firmware/common/w25q80bv.c
@@ -175,7 +175,7 @@ void w25q80bv_page_program(w25q80bv_driver_t* const drv, const uint32_t addr, co
 }
 
 /* write an arbitrary number of bytes */
-void w25q80bv_program(w25q80bv_driver_t* const drv, uint32_t addr, uint32_t len, const uint8_t* data)
+void w25q80bv_program(w25q80bv_driver_t* const drv, uint32_t addr, uint32_t len, uint8_t* data)
 {
 	uint16_t first_block_len;
 	uint8_t device_id;
diff --git a/firmware/common/w25q80bv.h b/firmware/common/w25q80bv.h
index cab8d68..4eb028c 100644
--- a/firmware/common/w25q80bv.h
+++ b/firmware/common/w25q80bv.h
@@ -44,7 +44,7 @@ typedef struct {
 
 void w25q80bv_setup(w25q80bv_driver_t* const drv);
 void w25q80bv_chip_erase(w25q80bv_driver_t* const drv);
-void w25q80bv_program(w25q80bv_driver_t* const drv, uint32_t addr, uint32_t len, const uint8_t* data);
+void w25q80bv_program(w25q80bv_driver_t* const drv, uint32_t addr, uint32_t len, uint8_t* data);
 uint8_t w25q80bv_get_device_id(w25q80bv_driver_t* const drv);
 void w25q80bv_get_unique_id(w25q80bv_driver_t* const drv, w25q80bv_unique_id_t* unique_id);
 
-- 
2.1.4