Sebastian Reichel
2479191c30
Input: cpcap-pwrbutton - replace GPLv2 boilerplate with SPDX
...
Replace the GPLv2 boilerplate text with a nice and short
SPDX header.
Signed-off-by: Sebastian Reichel <sre@kernel.org >
Link: https://lore.kernel.org/r/20230705212231.631525-1-sre@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-07-05 14:50:00 -07:00
Randy Dunlap
afbc67a90c
Input: cpcap-pwrbutton - remove initial kernel-doc notation
...
Change the beginning "/**" in the file to "/*" since it is not a
kernel-doc comment. This prevents a kernel-doc warning:
drivers/input/misc/cpcap-pwrbutton.c:2: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* CPCAP Power Button Input Driver
Signed-off-by: Randy Dunlap <rdunlap@infradead.org >
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com >
Link: https://lore.kernel.org/r/20230703230005.14877-1-rdunlap@infradead.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2023-07-05 12:29:39 -07:00
Dmitry Torokhov
ec45b858c8
Input: cpcap-pwrbutton - do not set input parent explicitly
...
We are using devm_input_allocate_device() that already sets parent
of the input device, there is no need to do that again.
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com >
Link: https://lore.kernel.org/r/YWpiZqrfC9+GQsM4@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2021-10-16 18:51:02 -07:00
Tang Bin
58ae4004b9
Input: cpcap-pwrbutton - handle errors from platform_get_irq()
...
The function cpcap_power_button_probe() does not perform
sufficient error checking after executing platform_get_irq(),
thus fix it.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com >
Link: https://lore.kernel.org/r/20210802121740.8700-1-tangbin@cmss.chinamobile.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2021-09-05 19:42:42 -07:00
Sebastian Reichel
6d99971842
input: cpcap-pwrbutton: New driver
...
Motorola CPCAP is a PMIC found in multiple smartphones.
This driver adds support for the power/on button and has
been tested in Droid 4.
Acked-by: Rob Herring <robh@kernel.org >
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Tested-by: Tony Lindgren <tony@atomide.com >
Signed-off-by: Sebastian Reichel <sre@kernel.org >
Signed-off-by: Lee Jones <lee.jones@linaro.org >
2017-04-11 15:18:09 +01:00