summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-06-17 22:47:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-18 10:58:58 +0200
commit69cec37e2c9992f622d476ebed3522429b111c29 (patch)
tree3e89dc50509cabf5086a687bcc449b97bef0e325 /common
parentdaeb9d8d76e353eaee45545e8f4e83df92af035c (diff)
downloadbarebox-69cec37e2c9992f622d476ebed3522429b111c29.tar.gz
barebox-69cec37e2c9992f622d476ebed3522429b111c29.tar.xz
state: struct variable_type::import: remove const from node argument
This patch removes the const qualifier of the node argument from struct variable_type::import. This is a preparation patch to support fixed strings in state. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/state.c b/common/state.c
index 8fa027a847..8a7a7680bc 100644
--- a/common/state.c
+++ b/common/state.c
@@ -90,7 +90,7 @@ struct variable_type {
struct list_head list;
int (*export)(struct state_variable *, struct device_node *,
enum state_convert);
- int (*import)(struct state_variable *, const struct device_node *);
+ int (*import)(struct state_variable *, struct device_node *);
struct state_variable *(*create)(struct state *state,
const char *name, struct device_node *);
};
@@ -153,7 +153,7 @@ static int state_uint32_export(struct state_variable *var,
}
static int state_uint32_import(struct state_variable *sv,
- const struct device_node *node)
+ struct device_node *node)
{
struct state_uint32 *su32 = to_state_uint32(sv);
@@ -278,7 +278,7 @@ static int state_enum32_export(struct state_variable *var,
}
static int state_enum32_import(struct state_variable *sv,
- const struct device_node *node)
+ struct device_node *node)
{
struct state_enum32 *enum32 = to_state_enum32(sv);
int len;
@@ -373,7 +373,7 @@ static int state_mac_export(struct state_variable *var,
}
static int state_mac_import(struct state_variable *sv,
- const struct device_node *node)
+ struct device_node *node)
{
struct state_mac *mac = to_state_mac(sv);