Mark pointers as const
Resulting binaries are identical. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Jeremy Soller
parent
d60a8e4c8e
commit
9fb08ffa46
@@ -96,7 +96,7 @@ bool peci_available(void) {
|
||||
void peci_init(void) {}
|
||||
|
||||
// Returns true on success, false on error
|
||||
bool peci_get_temp(int16_t *data) {
|
||||
bool peci_get_temp(int16_t *const data) {
|
||||
//TODO: Wait for completion?
|
||||
// Clear upstream status
|
||||
ESUCTRL0 = ESUCTRL0;
|
||||
@@ -289,7 +289,7 @@ void peci_init(void) {
|
||||
}
|
||||
|
||||
// Returns true on success, false on error
|
||||
bool peci_get_temp(int16_t *data) {
|
||||
bool peci_get_temp(int16_t *const data) {
|
||||
// Wait for any in-progress transaction to complete
|
||||
uint32_t start = time_get();
|
||||
while (HOSTAR & BIT(0)) {
|
||||
|
Reference in New Issue
Block a user