9
0
Fork 0

state: fix state is not saved when string variable is changed

The dirty flag was not set properly.

Signed-off-by: Stefan Lengfeld <s.lengfeld@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Stefan Lengfeld 2016-11-02 08:54:29 +01:00 committed by Sascha Hauer
parent 037fa2fedb
commit d0f1f07dfa
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ static int state_string_set(struct param_d *p, void *priv)
if (ret)
return ret;
return state_set_dirty(p, sv->state);
return state_set_dirty(p, sv);
}
static int state_string_get(struct param_d *p, void *priv)