From fb55b7a6ab48c4f782b16030e051029bcfa93e07 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 29 May 2015 16:24:45 +0200 Subject: [PATCH] profiles/hog: Use no suspend support instead of the dummy FIFO --- Makefile.plugins | 4 +++- profiles/input/suspend-none.c | 42 +++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 profiles/input/suspend-none.c diff --git a/Makefile.plugins b/Makefile.plugins index 52b51c5c7..cae43d90f 100644 --- a/Makefile.plugins +++ b/Makefile.plugins @@ -60,7 +60,9 @@ builtin_sources += profiles/input/manager.c \ builtin_modules += hog builtin_sources += profiles/input/hog.c profiles/input/uhid_copy.h \ - profiles/input/suspend.h profiles/input/suspend-dummy.c + profiles/input/suspend.h profiles/input/suspend-none.c + +EXTRA_DIST += profiles/input/suspend-dummy.c if EXPERIMENTAL builtin_modules += health diff --git a/profiles/input/suspend-none.c b/profiles/input/suspend-none.c new file mode 100644 index 000000000..c619bb11e --- /dev/null +++ b/profiles/input/suspend-none.c @@ -0,0 +1,42 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2012 Nordic Semiconductor Inc. + * Copyright (C) 2012 Instituto Nokia de Tecnologia - INdT + * + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "src/log.h" +#include "suspend.h" + +int suspend_init(suspend_event suspend, resume_event resume) +{ + DBG(""); + + return 0; +} + +void suspend_exit(void) +{ + DBG(""); +} -- 2.47.3