Commit 04d7ad83 authored by Steve Twiss's avatar Steve Twiss Committed by Dmitry Torokhov

Input: da9061 - onkey driver

Copyright header is updated to add DA9061 in its description and the module
description macro is extended to include DA9061.

Minor change to the code, alters dev_dbg() statements to report a generic
"PMIC" instead of DA9063. This device driver is compatible with DA9061,
DA9062 and DA9063.

Kconfig is updated to reflect support for DA9061/62/63.
Signed-off-by: default avatarSteve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 6d86c471
...@@ -625,11 +625,12 @@ config INPUT_DA9055_ONKEY ...@@ -625,11 +625,12 @@ config INPUT_DA9055_ONKEY
will be called da9055_onkey. will be called da9055_onkey.
config INPUT_DA9063_ONKEY config INPUT_DA9063_ONKEY
tristate "Dialog DA9062/63 OnKey" tristate "Dialog DA9063/62/61 OnKey"
depends on MFD_DA9063 || MFD_DA9062 depends on MFD_DA9063 || MFD_DA9062
help help
Support the ONKEY of Dialog DA9063 and DA9062 Power Management ICs Support the ONKEY of Dialog DA9063, DA9062 and DA9061 Power
as an input device capable of reporting the power button status. Management ICs as an input device capable of reporting the
power button status.
To compile this driver as a module, choose M here: the module To compile this driver as a module, choose M here: the module
will be called da9063_onkey. will be called da9063_onkey.
......
/* /*
* OnKey device driver for DA9063 and DA9062 PMICs * OnKey device driver for DA9063, DA9062 and DA9061 PMICs
* Copyright (C) 2015 Dialog Semiconductor Ltd. * Copyright (C) 2015 Dialog Semiconductor Ltd.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -149,13 +149,13 @@ static void da9063_poll_on(struct work_struct *work) ...@@ -149,13 +149,13 @@ static void da9063_poll_on(struct work_struct *work)
* and then send shutdown command * and then send shutdown command
*/ */
dev_dbg(&onkey->input->dev, dev_dbg(&onkey->input->dev,
"Sending SHUTDOWN to DA9063 ...\n"); "Sending SHUTDOWN to PMIC ...\n");
error = regmap_write(onkey->regmap, error = regmap_write(onkey->regmap,
config->onkey_shutdown, config->onkey_shutdown,
config->onkey_shutdown_mask); config->onkey_shutdown_mask);
if (error) if (error)
dev_err(&onkey->input->dev, dev_err(&onkey->input->dev,
"Cannot SHUTDOWN DA9063: %d\n", "Cannot SHUTDOWN PMIC: %d\n",
error); error);
} }
} }
...@@ -300,6 +300,6 @@ static struct platform_driver da9063_onkey_driver = { ...@@ -300,6 +300,6 @@ static struct platform_driver da9063_onkey_driver = {
module_platform_driver(da9063_onkey_driver); module_platform_driver(da9063_onkey_driver);
MODULE_AUTHOR("S Twiss <stwiss.opensource@diasemi.com>"); MODULE_AUTHOR("S Twiss <stwiss.opensource@diasemi.com>");
MODULE_DESCRIPTION("Onkey device driver for Dialog DA9063 and DA9062"); MODULE_DESCRIPTION("Onkey device driver for Dialog DA9063, DA9062 and DA9061");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DA9063_DRVNAME_ONKEY); MODULE_ALIAS("platform:" DA9063_DRVNAME_ONKEY);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment