Lines Matching defs:state
233 "failed to change power state to %d\n", on);
662 static int mma8452_set_freefall_mode(struct mma8452_data *data, bool state)
666 if ((state && mma8452_freefall_mode_enabled(data)) ||
667 (!state && !(mma8452_freefall_mode_enabled(data))))
674 if (state) {
976 int state)
986 ret = mma8452_set_runtime_pm_state(data->client, state);
992 return mma8452_set_freefall_mode(data, state);
998 if (state) {
1436 bool state)
1442 ret = mma8452_set_runtime_pm_state(data->client, state);
1450 if (state)