File: 0035-Si5351C-Change-write-data-arg-to-be-const.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 (32 lines) | stat: -rw-r--r-- 1,279 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
From 721f74867779291e11dcf69ffe313b45213f84cf Mon Sep 17 00:00:00 2001
From: Jared Boone <jboone@earfeast.com>
Date: Wed, 12 Nov 2014 10:21:34 -0800
Subject: [PATCH 35/68] Si5351C: Change write data arg to be const.

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

--- a/firmware/common/si5351c_drv.c
+++ b/firmware/common/si5351c_drv.c
@@ -61,7 +61,7 @@
  * Write to one or more contiguous registers. data[0] should be the first
  * register number, one or more values follow.
  */
-void si5351c_write(si5351c_driver_t* const drv, uint8_t* const data, const uint_fast8_t data_count)
+void si5351c_write(si5351c_driver_t* const drv, const uint8_t* const data, const uint_fast8_t data_count)
 {
 	uint_fast8_t i;
 
--- a/firmware/common/si5351c_drv.h
+++ b/firmware/common/si5351c_drv.h
@@ -36,7 +36,7 @@
 
 void si5351c_write_single(si5351c_driver_t* const drv, uint8_t reg, uint8_t val);
 uint8_t si5351c_read_single(si5351c_driver_t* const drv, uint8_t reg);
-void si5351c_write(si5351c_driver_t* const drv, uint8_t* const data, const uint_fast8_t data_count);
+void si5351c_write(si5351c_driver_t* const drv, const uint8_t* const data, const uint_fast8_t data_count);
 
 #ifdef __cplusplus
 }