[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1435139465.4528.64.camel@tiscali.nl>
Date: Wed, 24 Jun 2015 11:51:05 +0200
From: Paul Bolle <pebolle@...cali.nl>
To: Benjamin Tissoires <benjamin.tissoires@...hat.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Andrew Duggan <aduggan@...aptics.com>,
Christopher Heiny <cheiny@...aptics.com>,
Allie Xiong <axiong@...aptics.com>
Cc: Stephen Chandler Paul <cpaul@...hat.com>,
benjamin.tissoires@...il.com, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 01/11] Input: synaptics-rmi4 - embed the function
modules in rmi_core
On Tue, 2015-06-23 at 15:17 -0400, Benjamin Tissoires wrote:
> drivers/input/rmi4/Kconfig | 5 +----
> drivers/input/rmi4/Makefile | 2 +-
> drivers/input/rmi4/rmi_bus.c | 11 ++++++++++-
> drivers/input/rmi4/rmi_driver.h | 8 ++++++++
> drivers/input/rmi4/rmi_f11.c | 10 +++++++++-
> 5 files changed, 29 insertions(+), 7 deletions(-)
(These files are neither in v4.1 nor in current linux-next. I have no
idea which tree this is for.)
> --- a/drivers/input/rmi4/Kconfig
> +++ b/drivers/input/rmi4/Kconfig
> config RMI4_F11
> - tristate "RMI4 Function 11 (2D pointing)"
> + bool "RMI4 Function 11 (2D pointing)"
> depends on RMI4_CORE
> help
> Say Y here if you want to add support for RMI4 function
> 11.
(Upgrading to Fedora 22 gave me evolution 3.16. And evolution now
somehow manages to screw up replies to long lines in patches!)
> --- a/drivers/input/rmi4/rmi_f11.c
> +++ b/drivers/input/rmi4/rmi_f11.c
> @@ -1537,7 +1537,15 @@ static struct rmi_function_handler
> rmi_f11_handler = {
> .attention = rmi_f11_attention,
> };
>
> -module_rmi_driver(rmi_f11_handler);
> +int __init rmi_register_f11_handler(void)
> +{
> + return rmi_register_function_handler(&rmi_f11_handler);
> +}
> +
> +void rmi_unregister_f11_handler(void)
> +{
> + rmi_unregister_function_handler(&rmi_f11_handler);
> +}
>
> MODULE_AUTHOR("Christopher Heiny <cheiny@...aptics.com");
> MODULE_AUTHOR("Andrew Duggan <aduggan@...aptics.com");
You can remove these macros too. And whatever module specific code or
macros there still might be left in this file.
Thanks,
Paul Bolle
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists