projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
riscv: Enable function sections
[oweals/u-boot.git]
/
drivers
/
misc
/
cros_ec_sandbox.c
diff --git
a/drivers/misc/cros_ec_sandbox.c
b/drivers/misc/cros_ec_sandbox.c
index c96e26e6b782c41436a1e7e53f538cfe14270d72..47a9d26c3c7b7365cf80794ffbf45a9734cc7fcb 100644
(file)
--- a/
drivers/misc/cros_ec_sandbox.c
+++ b/
drivers/misc/cros_ec_sandbox.c
@@
-1,9
+1,8
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Chromium OS cros_ec driver - sandbox emulation
*
* Copyright (c) 2013 The Chromium OS Authors.
/*
* Chromium OS cros_ec driver - sandbox emulation
*
* Copyright (c) 2013 The Chromium OS Authors.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-51,8
+50,6
@@
* the EC image in with U-Boot (Vic has demonstrated a prototype for this).
*/
* the EC image in with U-Boot (Vic has demonstrated a prototype for this).
*/
-DECLARE_GLOBAL_DATA_PTR;
-
#define KEYBOARD_ROWS 8
#define KEYBOARD_COLS 13
#define KEYBOARD_ROWS 8
#define KEYBOARD_COLS 13
@@
-197,7
+194,7
@@
static int keyscan_read_fdt_matrix(struct ec_state *ec, ofnode node)
int upto;
int len;
int upto;
int len;
- cell = ofnode_
read_prop
(node, "linux,keymap", &len);
+ cell = ofnode_
get_property
(node, "linux,keymap", &len);
ec->matrix_count = len / 4;
ec->matrix = calloc(ec->matrix_count, sizeof(*ec->matrix));
if (!ec->matrix) {
ec->matrix_count = len / 4;
ec->matrix = calloc(ec->matrix_count, sizeof(*ec->matrix));
if (!ec->matrix) {